re PR c++/49691 (ICE in cp_parser_late_return_type_opt, at cp/parser.c:15562)
authorJason Merrill <jason@redhat.com>
Sun, 10 Jul 2011 14:24:03 +0000 (10:24 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Sun, 10 Jul 2011 14:24:03 +0000 (10:24 -0400)
commit53130f756045ccc520dc6ec8a6881dedfad8b46a
tree791dd149ab8ea0df82b255c78fc444837e3d1ae9
parent7746ff43a6f8e6e555464367c08e0a1f43eedc57
re PR c++/49691 (ICE  in cp_parser_late_return_type_opt, at cp/parser.c:15562)

PR c++/49691
* parser.c (cp_parser_late_return_type_opt): Check quals parameter
rather than current_class_type to determine whether to set 'this'.
(cp_parser_direct_declarator): Pass -1 to quals if member_p is false.
(cp_parser_init_declarator): Pass down member_p.

From-SVN: r176120
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/regress/regress6.C [new file with mode: 0644]
gcc/testsuite/g++.dg/parse/crash45.C
gcc/testsuite/g++.dg/template/crash38.C
gcc/testsuite/g++.dg/template/crash64.C