[Bug c++/119824] initialization of a static member variable with type auto or decltype(auto) is not accepted

2025-04-15 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119824

Andrew Pinski  changed:

   What|Removed |Added

 Resolution|--- |DUPLICATE
 Status|UNCONFIRMED |RESOLVED

--- Comment #2 from Andrew Pinski  ---
Dup.

*** This bug has been marked as a duplicate of bug 78217 ***

[Bug c++/119824] initialization of a static member variable with type auto or decltype(auto) is not accepted

2025-04-15 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119824

--- Comment #1 from Andrew Pinski  ---
Even simplier is rejected:
```
extern unsigned t;
auto t = 1u;

```