https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116911
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed| |2024-09-30
Ever confirmed|0 |1
Status|UNCONFIRMED |NEW
--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Slightly more reduced:
```
template <int &> struct a {};
namespace {
int guard;
}
a<guard> b;
```
YES this should be accepted with C++11. Anonynous namespaces are still
considered external linkage; even though they get localized.