[PR c++/84702] ICE with default tmpl arg of overload set
[official-gcc.git] / gcc / testsuite / g++.dg / spellcheck-pr78313.C
blobe34176d5f7471c2df163f5e3fc1eb66da5c4404a
1 // PR c++/78313 (see also PR c++/72774)
2 // { dg-do compile }
4 void baz ();
5 namespace A { void foo (); }
6 void bar ()
8   using A::foo;
9   0 ? static_cast<foo> (0) : baz; // { dg-bogus "did you mean" }
10   // { dg-error "does not name a type" "" { target *-*-* } .-1 }