https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98105
--- Comment #3 from Andrew Pinski ---
Reduced:
```
void f(const int&);
namespace {
struct myFactory
{
static constexpr int s_sList = 1;
};
}
//constexpr int myFactory::s_sList;
void sdi_register_model()
{
f(myFactory::s_sList);
}
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98105
--- Comment #2 from Peter Foelsche ---
sorry -- adding a definition outside of class for the variable solves the
problem!
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98105
Richard Biener changed:
What|Removed |Added
Status|UNCONFIRMED |NEW
Keywords|