Commit fca00ffb by Mark Mitchell Committed by Mark Mitchell

re PR c++/13714 (destructor name `const s' does not match type `const s' of expression)

	PR c++/13714
	* typeck.c (lookup_destructor): Tweak error message.

From-SVN: r77334
parent bc1ec7f7
2004-02-05 Mark Mitchell <mark@codesourcery.com>
PR c++/13714
* typeck.c (lookup_destructor): Tweak error message.
2004-02-05 Jan Hubicka <jh@suse.cz> 2004-02-05 Jan Hubicka <jh@suse.cz>
* tree.c (cp_cannot_inline_tree_fn): Allow inlining of comdat * tree.c (cp_cannot_inline_tree_fn): Allow inlining of comdat
......
...@@ -1801,8 +1801,8 @@ lookup_destructor (tree object, tree scope, tree dtor_name) ...@@ -1801,8 +1801,8 @@ lookup_destructor (tree object, tree scope, tree dtor_name)
} }
if (!same_type_p (dtor_type, TYPE_MAIN_VARIANT (object_type))) if (!same_type_p (dtor_type, TYPE_MAIN_VARIANT (object_type)))
{ {
error ("destructor name `%T' does not match type `%T' of expression", error ("the type being destroyed is '%T', but the destructor refers to `%T'",
dtor_type, object_type); TYPE_MAIN_VARIANT (object_type), dtor_type);
return error_mark_node; return error_mark_node;
} }
if (!TYPE_HAS_DESTRUCTOR (object_type)) if (!TYPE_HAS_DESTRUCTOR (object_type))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment