Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
ext
/
pr77496.C
blob: 0b21e0cee3936aa4f7f60016e34b551d01f0166a [
file
] [
log
] [
blame
]
// { dg-do compile }
// { dg-options "" }
template
<
class
x
>
class
z
:
x
{
public
:
bool
zz
()
{
return
false
;
}
int
f
()
{
return
zz
?
:
1
;
}
// { dg-error "cannot convert" }
};
class
t
{
};
int
main
()
{
z
<t>
x
;
return
x
.
f
();
}