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
Update concepts branch to revision 131834
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
template
/
error19.C
blob
d533e9a3b985ffcad8351add047e7cabfd9ac37e
1
// PR c++/23293
2
3
template < typename > struct P;
4
struct S;
5
6
void *unrelated_function()
7
{
8
typedef S K;
9
P < K > * p;
10
return p;
11
}
12
13
template < typename U >
14
void generate_warning()
15
{
16
U::x(); // { dg-error "P<S>" }
17
}
18
19
int main()
20
{
21
generate_warning< P < S > >();
22
}