[Bug c++/107186] GCC rejects use of static constexpr member function in noexcept complete-class context
mpolacek at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Jul 11 13:56:46 GMT 2024
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107186
--- Comment #3 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
So it follows that this doesn't work either:
```
struct A {
constexpr static bool func()
{
return true;
}
constexpr static bool i = func();
};
```
More information about the Gcc-bugs
mailing list