Debian Codegraph @

gcc/testsuite/g++.dg/parse/pr72774.C

raw
1 // PR c++/72774
2 // { dg-do compile }
3
4 void baz ();
5 namespace A { void foo (); }
6 void bar ()
7 {
8 using A::foo;
9 0 ? static_cast<foo> (0) : baz; // { dg-error "does not name a type" }
10 }