Skip to content
Snippets Groups Projects
Commit 1b3d28a8 authored by Volker Reichelt's avatar Volker Reichelt Committed by Volker Reichelt
Browse files

re PR c++/25552 (Invalid destructor name accepted in friend declaration)

	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.

From-SVN: r110168
parent c05849f4
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment