Hi!

This PR has been fixed by r240148.  I've checked in the testcase as obvious,
so we can close it.

2016-11-11  Jakub Jelinek  <ja...@redhat.com>

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

--- gcc/testsuite/g++.dg/parse/pr72774.C.jj     2016-11-11 14:37:39.073659504 
+0100
+++ gcc/testsuite/g++.dg/parse/pr72774.C        2016-11-11 14:00:42.000000000 
+0100
@@ -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" }
+}

        Jakub

Reply via email to