This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/53473] [C++11] static constexpr noexcept cannot be specialized
- From: "daniel.kruegler at googlemail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 25 May 2012 06:56:06 +0000
- Subject: [Bug c++/53473] [C++11] static constexpr noexcept cannot be specialized
- Auto-submitted: auto-generated
- References: <bug-53473-4@http.gcc.gnu.org/bugzilla/>
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]'
"