[Bug c++/78022] constexpr int template rejected unless constructor is used before hand

fiesh at zefix dot tv gcc-bugzilla@gcc.gnu.org
Thu Dec 6 12:57:00 GMT 2018


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

--- Comment #5 from fiesh at zefix dot tv ---
The code still does not compile with gcc-8.2 but does compile on trunk now!

Conversely, clang consistently refuses to compile it since clang-5.

So I guess this can be closed, unless clang is actually correct and my bug
report was flawed because the code is actually invalid?

For what it's worth, godbolt shows that both MSVC and ICC accept the code as
valid.


More information about the Gcc-bugs mailing list