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
Merge from mainline.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
overload
/
koenig1.C
blob
1ed7bce0b146d95f4db7b88a9be408a87d2331a5
1
// PR c++/9336
2
// Bug: The first, invalid call to f caused us to crash on the second,
3
// valid call.
4
5
namespace N {
6
template <class T> void f (T);
7
struct A;
8
}
9
10
struct B;
11
12
void g ()
13
{
14
B *bp;
15
N::A *ap;
16
f (bp); // { dg-error "not declared" }
17
f (ap);
18
}