From d9ab7525e55c62ce4b157ada5f21c67fa43ee429 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Fri, 11 Nov 2016 14:39:06 +0100 Subject: [PATCH] =?utf8?q?re=20PR=20c++/72774=20(ICE=20on=20invalid=20C++?= =?utf8?q?=20code=20on=20x86=5F64-linux-gnu=20(tree=20check:=20expected=20?= =?utf8?q?tree=20that=20contains=20=E2=80=98decl=20minimal=E2=80=99=20stru?= =?utf8?q?cture,=20have=20=E2=80=98tree=5Flist=E2=80=99=20in=20consider=5F?= =?utf8?q?binding=5Flevel,=20at=20cp/name-lookup.c:4721))?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit PR c++/72774 * g++.dg/parse/pr72774.C: New test. From-SVN: r242070 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/g++.dg/parse/pr72774.C | 10 ++++++++++ 2 files changed, 15 insertions(+) create mode 100644 gcc/testsuite/g++.dg/parse/pr72774.C 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" } +} -- 2.30.2