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 c++/84702] ICE with default tmpl arg of overload set
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
template
/
pr59930-2.C
blob
a7e6ea4ea9aabdc51c7d9544df1aa11862351240
1
// PR c++/59930
2
3
namespace N {
4
template < typename T > class A
5
{
6
// Injects N::N
7
template < T > friend class N;
8
// { dg-error "template parameter" "" { target *-*-* } .-1 }
9
// { dg-error "redeclared" "" { target *-*-* } .-2 }
10
};
11
}
12
13
void f ()
14
{
15
N::A < int > a1;
16
N::A <short > a2;
17
}