Sign in
gnu
/
gcc
/
e8cbc2e256b3e9568288594d9f90a2015d31b55a
/
.
/
gcc
/
testsuite
/
g++.old-deja
/
g++.pt
/
conv1.C
blob: 19e433e2f70b69f15497fd55b525118b01d5a692 [
file
] [
log
] [
blame
]
// Build don't link:
template
<
class
T
>
struct
S1
{};
struct
S2
{
template
<
class
T
>
operator
S1
<
T
>*();
};
struct
D
:
public
S1
<int>
{
};
void
f
()
{
S2 s
;
(
D
*)
s
;
// ERROR - cannot convert
}