From: Jakub Jelinek Date: Fri, 11 Nov 2016 13:39:06 +0000 (+0100) Subject: re PR c++/72774 (ICE on invalid C++ code on x86_64-linux-gnu (tree check: expected... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d9ab7525e55c62ce4b157ada5f21c67fa43ee429;p=gcc.git 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 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 87f09bd4259..3289f756f16 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2016-11-11 Jakub Jelinek + + PR c++/72774 + * g++.dg/parse/pr72774.C: New test. + 2016-11-11 Richard Biener PR tree-optimization/71575 diff --git a/gcc/testsuite/g++.dg/parse/pr72774.C b/gcc/testsuite/g++.dg/parse/pr72774.C new file mode 100644 index 00000000000..487a1a377a3 --- /dev/null +++ b/gcc/testsuite/g++.dg/parse/pr72774.C @@ -0,0 +1,10 @@ +// PR c++/72774 +// { dg-do compile } + +void baz (); +namespace A { void foo (); } +void bar () +{ + using A::foo; + 0 ? static_cast (0) : baz; // { dg-error "does not name a type" } +}