OSDN Git Service

PR c++/25552
authorreichelt <reichelt@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 24 Jan 2006 11:55:58 +0000 (11:55 +0000)
committerreichelt <reichelt@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 24 Jan 2006 11:55:58 +0000 (11:55 +0000)
commita32f68f58d919e02f885b817337f5ad369dfd156
treeadceb6c58da099960f7ae0c1c45bb7f25c9ea8b7
parent90c5e595231c63ce44d1dec08bf26406c346aa84
PR c++/25552
* parser.c (cp_parser_unqualified_id): Check that destructor name
and scope match.
* call.c (check_dtor_name): Do not expect a BIT_NOT_EXPR.
Adjust comment.  Return early if possible.
Use same_type_p to compare types.
* typeck.c (lookup_destructor): Adjust call to check_dtor_name.

* g++.dg/parse/dtor8.C: New test.

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