cp/
commit9891ad1feaedf83b13c416a84644fbc99410bb42
authornathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 1 Sep 2006 13:46:19 +0000 (1 13:46 +0000)
committernathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 1 Sep 2006 13:46:19 +0000 (1 13:46 +0000)
treefd1ec9cb6d051bba56eed98210ea04146e9c7267
parentafa87cdcf705726dd4db206c533b51c396e64332
cp/
PR c++/23287
* parser.c (cp_parser_id_expression): Add member_p
argument. Update all callers.
(cp_parser_unqualified_id): Likewise.  Lookup a destructor name in
the object's scope, if valid.
(cp_parser_global_scope_opt): Add object_scope_valid_p.  Update
callers.
(cp_parser_postfix_dot_deref_expression): Set object_scope.
* pt.c (tsubst_copy_and_build): Lookup dependent dtor name here.
testsuite/
PR c++/23287
* g++.dg/parse/dtor12.C: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@116623 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/cp/pt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/parse/dtor12.C [new file with mode: 0644]