Summary: | GCC should allow constexpr and const together | ||
---|---|---|---|
Product: | gcc | Reporter: | Stephen <steveire> |
Component: | c++ | Assignee: | Not yet assigned to anyone <unassigned> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | daniel.kruegler, jason |
Priority: | P3 | ||
Version: | 4.6.1 | ||
Target Milestone: | 4.7.2 | ||
Host: | Target: | ||
Build: | Known to work: | ||
Known to fail: | Last reconfirmed: |
Description
Stephen
2012-07-24 15:47:35 UTC
Changing this behavior should be pretty simple, if we want. Jason, shall we do that? PS: volatile constexpr?!? 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 Fixed for 4.8. 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 Fixed for 4.7.2 as well. |