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
This commit is contained in:
Jakub Jelinek 2016-11-11 14:39:06 +01:00 committed by Jakub Jelinek
parent 4b7e0c7668
commit d9ab7525e5
2 changed files with 15 additions and 0 deletions

View file

@ -1,3 +1,8 @@
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

View file

@ -0,0 +1,10 @@
// 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" }
}