Sign in
gnu
/
gcc
/
57ea00136418991e847e46a6946a81a1df70c9a4
/
.
/
gcc
/
testsuite
/
g++.old-deja
/
g++.jason
/
temporary5.C
blob: d233fa9b3ad654c078fc16109508a2982186acd2 [
file
] [
log
] [
blame
]
// { dg-do run }
// PRMS Id: 6604
// Bug: Scoped constructor call is not properly recognized as a functional cast
int
c
;
struct
A
{
A
()
{
++
c
;
}
~
A
()
{
--
c
;
}
operator
int
()
{
return
1
;
}
};
int
main
()
{
A
::
A
();
return
c
;
}