repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
PR tree-optimization/67955
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
spellcheck-pr78313.C
blob
e34176d5f7471c2df163f5e3fc1eb66da5c4404a
1
// PR c++/78313 (see also 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-bogus "did you mean" }
10
// { dg-error "does not name a type" "" { target *-*-* } .-1 }
11
}