http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52432
Paolo Carlini <paolo.carlini at oracle dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2012-02-29 Ever Confirmed|0 |1 --- Comment #1 from Paolo Carlini <paolo.carlini at oracle dot com> 2012-02-29 12:58:41 UTC --- I think it's only matter of this (untested so far): Index: pt.c =================================================================== --- pt.c (revision 184643) +++ pt.c (working copy) @@ -13918,7 +13918,8 @@ } if (TREE_CODE (function) == IDENTIFIER_NODE) { - unqualified_name_lookup_error (function); + if (complain & tf_warning_or_error) + unqualified_name_lookup_error (function); release_tree_vector (call_args); return error_mark_node; }