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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |missed-optimization
     Ever confirmed|0                           |1
            Summary|missed optimization - dead  |auto return type does not
                   |code elimination for        |change the linkage for
                   |anonymous structures        |anonymous structs
             Status|UNCONFIRMED                 |NEW
           Severity|normal                      |enhancement
   Last reconfirmed|                            |2024-06-26

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Confirmed.

Doing:
```
decltype(a) bar(){
    return a;
}
```

GCC is able to change the linkage of bar. it is just auto which is not handled.

Reply via email to