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
PR c++/47705
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.dg
/
template
/
pseudodtor2.C
1
// PR c++/32384
2
// { dg-do compile }
3
4
template<typename S> struct D
5
{
6
typedef int T;
7
S foo ();
8
9
D () { foo ().~T(); } // { dg-error "is not of type" }
10
};
11
12
struct Z
13
{
14
Z () {}
15
~Z () {}
16
};
17
18
D<Z> d;