This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/52282] [C++0x] ICE / confused by earlier errors with decltype/constexpr
- 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: Thu, 16 Feb 2012 19:24:10 +0000
- Subject: [Bug c++/52282] [C++0x] ICE / confused by earlier errors with decltype/constexpr
- Auto-submitted: auto-generated
- References: <bug-52282-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52282
Daniel KrÃgler <daniel.kruegler at googlemail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |daniel.kruegler at
| |googlemail dot com
--- Comment #1 from Daniel KrÃgler <daniel.kruegler at googlemail dot com> 2012-02-16 19:24:10 UTC ---
(In reply to comment #0)
> Note that non-static member function pointers do not generate either issues,
> although it is necessary to add "const" to the pointer type but not to the
> corresponding function definition:
Adding const to the function type is required, because the constexpr specifier
for any non-static member functions behaves as if the function were declared as
const member function.