Commit d9ab7525 by Jakub Jelinek Committed by Jakub Jelinek

re PR c++/72774 (ICE on invalid C++ code on x86_64-linux-gnu (tree check:…

re PR c++/72774 (ICE on invalid C++ code on x86_64-linux-gnu (tree check: expected tree that contains ‘decl minimal’ structure, have ‘tree_list’ in consider_binding_level, at cp/name-lookup.c:4721))

	PR c++/72774
	* g++.dg/parse/pr72774.C: New test.

From-SVN: r242070
parent 4b7e0c76
2016-11-11 Jakub Jelinek <jakub@redhat.com>
PR c++/72774
* g++.dg/parse/pr72774.C: New test.
2016-11-11 Richard Biener <rguenther@suse.de>
PR tree-optimization/71575
......
// PR c++/72774
// { dg-do compile }
void baz ();
namespace A { void foo (); }
void bar ()
{
using A::foo;
0 ? static_cast<foo> (0) : baz; // { dg-error "does not name a 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