This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/53473] [C++11] static constexpr noexcept cannot be specialized


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]'
"


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]