Commit 66fafc3b by Jan Hubicka Committed by Jan Hubicka

re PR c++/91222 (507.cactuBSSN_r build fails in warn_types_mismatch at…

re PR c++/91222 (507.cactuBSSN_r build fails in warn_types_mismatch at ipa-devirt.c:1006 since r273571)


	PR lto/91222
	* ipa-devirt.c (warn_types_mismatch): Compare indentifiers
	than INDENTIFIER_POINTER.

From-SVN: r273866
parent a8cc00bf
2019-07-28 Jan Hubicka <hubicka@ucw.cz>
PR lto/91222
* ipa-devirt.c (warn_types_mismatch): Compare indentifiers
than INDENTIFIER_POINTER.
2019-07-28 Martin Liska <mliska@suse.cz> 2019-07-28 Martin Liska <mliska@suse.cz>
PR ipa/89330 PR ipa/89330
......
...@@ -1003,7 +1003,7 @@ warn_types_mismatch (tree t1, tree t2, location_t loc1, location_t loc2) ...@@ -1003,7 +1003,7 @@ warn_types_mismatch (tree t1, tree t2, location_t loc1, location_t loc2)
n2 = DECL_NAME (n2); n2 = DECL_NAME (n2);
/* Most of the time, the type names will match, do not be unnecesarily /* Most of the time, the type names will match, do not be unnecesarily
verbose. */ verbose. */
if (IDENTIFIER_POINTER (n1) != IDENTIFIER_POINTER (n2)) if (n1 != n2)
inform (loc_t1, inform (loc_t1,
"type %qT defined in anonymous namespace cannot match " "type %qT defined in anonymous namespace cannot match "
"type %qT across the translation unit boundary", "type %qT across the translation unit boundary",
......
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