decl.c (grokdeclarator): Don't ICE on constexpr non-static data member.
authorJason Merrill <jason@redhat.com>
Mon, 1 Nov 2010 02:04:30 +0000 (22:04 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Mon, 1 Nov 2010 02:04:30 +0000 (22:04 -0400)
commit202be748c9997016f1b08c98291db4b7b9b02a5f
treec73ec826bca2bbeb958764d2f9c5023a3d3a4ad4
parente2c50b7eeec3a51e080e80d0492250f7fd86770c
decl.c (grokdeclarator): Don't ICE on constexpr non-static data member.

* decl.c (grokdeclarator): Don't ICE on constexpr non-static data
member.

* parser.c (cp_parser_diagnose_invalid_type_name): Give helpful
message about constexpr without -std=c++0x.

From-SVN: r166122
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/cp/parser.c
gcc/testsuite/g++.dg/cpp0x/constexpr-98.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp0x/constexpr-nonstatic.C [new file with mode: 0644]