[Bug c++/53473] [C++11] static constexpr noexcept cannot be specialized
daniel.kruegler at googlemail dot com
gcc-bugzilla@gcc.gnu.org
Fri May 25 07:00:00 GMT 2012
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53473
--- Comment #1 from Daniel Krügler <daniel.kruegler at googlemail dot com> 2012-05-25 06:56:06 UTC ---
This looks indeed like an odd compiler error and one really needs all three
specifiers static, constexpr, and *any* exception-specification to produce the
problem. For completeness the error is:
"7|error: declaration of 'static constexpr T A<T>::foo() [with T = int]' has a
different exception specifier|
3|error: from previous declaration 'static constexpr T A<T>::foo() noexcept
(true) [with T = int]'
"
More information about the Gcc-bugs
mailing list