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
2014-01-30 Alangi Derick <alangiderick@gmail.com>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
template
/
delete2.C
blob
b6ab380c9f9dcc89cc27bee926d08352a9c334f4
1
// PR c++/58119
2
3
template <class T>
4
struct A
5
{
6
operator T*();
7
template <class U>
8
operator A<U>();
9
};
10
11
template <class T>
12
struct B
13
{
14
operator T*();
15
template <class U>
16
operator A<U>*();
17
};
18
19
int main()
20
{
21
A<int> a;
22
delete a;
23
24
B<int> b;
25
delete b; // { dg-error "template|delete" }
26
}