This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/50298] [C++0x][constexpr] References cannot be bound to static constexpr reference members
- 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, 07 Sep 2011 17:11:56 +0000
- Subject: [Bug c++/50298] [C++0x][constexpr] References cannot be bound to static constexpr reference members
- Auto-submitted: auto-generated
- References: <bug-50298-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50298
--- Comment #1 from Jason Merrill <jason at gcc dot gnu.org> 2011-09-07 17:11:56 UTC ---
Author: jason
Date: Wed Sep 7 17:11:49 2011
New Revision: 178652
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=178652
Log:
PR c++/50298
* parser.c (cp_parser_member_declaration): Don't require a constant
rvalue here in C++0x.
Added:
trunk/gcc/testsuite/g++.dg/cpp0x/constexpr-ref3.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/parser.c
trunk/gcc/testsuite/ChangeLog