This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/54086] GCC should allow constexpr and const together
- From: "jason at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 25 Jul 2012 14:57:11 +0000
- Subject: [Bug c++/54086] GCC should allow constexpr and const together
- Auto-submitted: auto-generated
- References: <bug-54086-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54086
--- Comment #2 from Jason Merrill <jason at gcc dot gnu.org> 2012-07-25 14:57:11 UTC ---
Author: jason
Date: Wed Jul 25 14:57:06 2012
New Revision: 189852
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=189852
Log:
PR c++/54086
* decl.c (grokdeclarator): Allow const and constexpr together.
Added:
trunk/gcc/testsuite/g++.dg/cpp0x/constexpr-const1.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/decl.c
trunk/gcc/testsuite/g++.dg/cpp0x/constexpr-object1.C