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++/86728 - C variadic generic lambda.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
template
/
dtor10.C
blob
4307a683b71cd457047b6e4642ddc070757d1195
1
// PR c++/71748
2
3
struct A
4
{
5
virtual ~A () {}
6
};
7
8
struct B : public A
9
{
10
virtual ~B () {}
11
};
12
13
template < int > void foo ()
14
{
15
B *b = new B;
16
b->~A ();
17
}
18
19
int main ()
20
{
21
foo < 0 > ();
22
return 0;
23
}