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: "kretz at kde dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 25 May 2012 08:53:36 +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 #2 from Matthias Kretz <kretz at kde dot org> 2012-05-25 08:53:36 UTC ---
Does the standard allow exceptions in constexpr? A throw is not exactly a
return statement, but according to the rule "constexpr function shall satisfy
[...] exactly one return statement" I'd expect a constexpr function can never
throw anyway. Thus the noexcept itself seems to make no sense in the first
place.