PR c++/49691
commita526875a94cd559be4e33585076df05eea7bd168
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 10 Jul 2011 14:24:03 +0000 (10 14:24 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 10 Jul 2011 14:24:03 +0000 (10 14:24 +0000)
tree791dd149ab8ea0df82b255c78fc444837e3d1ae9
parent0517f03a892228e72d215f9cb674f861d1840638
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@176120 138bc75d-0d04-0410-961f-82ee72b054a4
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