https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122113

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |13.5
            Summary|internal compiler error:    |[13/14/15/16 Regression]
                   |finish_expr_stmt at         |ICE: finish_expr_stmt at
                   |cp/semantics.cc:1169 with   |cp/semantics.cc:1169 with
                   |anonymous union member      |anonymous union member
                   |initialized by f(this)      |initialized by f(this)
           Keywords|                            |needs-bisection
             Status|UNCONFIRMED                 |NEW
      Known to work|                            |11.4.0
     Ever confirmed|0                           |1
      Known to fail|                            |12.1.0
   Last reconfirmed|                            |2025-10-02

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Confirmed.
Reduced slightly further down to:
```
template<typename T> static auto f(T *t) {
 T u(*t);
 return 1;
}
int main() {
 union { int x = f(this); };
}
```

Reply via email to