OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
2010-02-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.dg
/
template
/
error19.C
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
}