]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR c++/23287 (Explicitly invoking destructor of template class in a template and...
authorNathan Sidwell <nathan@codesourcery.com>
Fri, 1 Sep 2006 13:46:19 +0000 (13:46 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Fri, 1 Sep 2006 13:46:19 +0000 (13:46 +0000)
commit429b876b0784f5f4406eadf56115a8b4c20e874d
treefd1ec9cb6d051bba56eed98210ea04146e9c7267
parent39aa3581c4e83d5c54196ae2f332b3a7d62e4ec8
re PR c++/23287 (Explicitly invoking destructor of template class in a template and is dependent)

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.

From-SVN: r116623
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]