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
cp/
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
template
/
friend43.C
blob
edbed8420d0bf4c304b48ee87071c2391e1cf66a
1
// PR c++/28111
2
// { dg-do compile }
3
4
template<typename> void foo();
5
6
template<typename T> struct A
7
{
8
friend void foo<>(typename T::X); // { dg-error "not a class" }
9
};
10
11
A<int> a;