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: Mon, 10 Sep 2012 14:44:54 +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
Jason Merrill <jason at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.8.0 |4.7.2
--- Comment #4 from Jason Merrill <jason at gcc dot gnu.org> 2012-09-10 14:24:04 UTC ---
Author: jason
Date: Mon Sep 10 14:23:54 2012
New Revision: 191144
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=191144
Log:
PR c++/54086
* decl.c (grokdeclarator): Allow const and constexpr together.
Added:
branches/gcc-4_7-branch/gcc/testsuite/g++.dg/cpp0x/constexpr-const1.C
Modified:
branches/gcc-4_7-branch/gcc/cp/ChangeLog
branches/gcc-4_7-branch/gcc/cp/decl.c
branches/gcc-4_7-branch/gcc/testsuite/g++.dg/cpp0x/constexpr-object1.C
--- Comment #5 from Jason Merrill <jason at gcc dot gnu.org> 2012-09-10 14:44:54 UTC ---
Fixed for 4.7.2 as well.