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
2017-06-14 Paolo Carlini <paolo.carlini@oracle.com>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
template
/
virtual2.C
blob
83b7ed6beaead0b3781633627aef82c36e0794a7
1
// PR c++/51137
2
3
struct A {};
4
5
template<int> struct B : virtual A
6
{
7
void foo()
8
{
9
(new A(*this))->A::~A();
10
}
11
};