Commit 01e721f3 by Paolo Carlini Committed by Paolo Carlini

re PR c++/52432 ([C++11] -fdump-tree-gimple causes ICE: Error reporting routines re-entered.)

/cp
2012-09-20  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/52432
	* pt.c (tsubst_copy_and_build): If tf_error is not set in the complain
	argument don't call unqualified_name_lookup_error.

/testsuite
2012-09-20  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/52432
	* g++.dg/cpp0x/decltype32.C: Tweak.

From-SVN: r191564
parent 9606465f
2012-09-20 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/52432
* pt.c (tsubst_copy_and_build): If tf_error is not set in the complain
argument don't call unqualified_name_lookup_error.
2012-09-19 Marc Glisse <marc.glisse@inria.fr> 2012-09-19 Marc Glisse <marc.glisse@inria.fr>
PR c++/54581 PR c++/54581
......
...@@ -13771,7 +13771,8 @@ tsubst_copy_and_build (tree t, ...@@ -13771,7 +13771,8 @@ tsubst_copy_and_build (tree t,
} }
if (TREE_CODE (function) == IDENTIFIER_NODE) if (TREE_CODE (function) == IDENTIFIER_NODE)
{ {
unqualified_name_lookup_error (function); if (complain & tf_error)
unqualified_name_lookup_error (function);
release_tree_vector (call_args); release_tree_vector (call_args);
RETURN (error_mark_node); RETURN (error_mark_node);
} }
......
2012-09-20 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/52432
* g++.dg/cpp0x/decltype32.C: Tweak.
2012-09-20 Marc Glisse <marc.glisse@inria.fr> 2012-09-20 Marc Glisse <marc.glisse@inria.fr>
* gcc.dg/tree-ssa/forwprop-19.c: Check in forwprop1. * gcc.dg/tree-ssa/forwprop-19.c: Check in forwprop1.
......
...@@ -3,10 +3,10 @@ ...@@ -3,10 +3,10 @@
template <typename T> template <typename T>
auto make_array(const T& il) -> auto make_array(const T& il) ->
decltype(make_array(il)) // { dg-error "not declared" } decltype(make_array(il)) // { dg-error "not declared|no matching|exceeds" }
{ } { }
int main() int main()
{ {
int z = make_array(1); // { dg-error "no match" } int z = make_array(1); // { dg-error "no matching" }
} }
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