Sign in
gnu
/
gcc
/
refs/tags/basepoints/gcc-13
/
.
/
gcc
/
testsuite
/
g++.dg
/
diagnostic
/
ptrtomem3.C
blob: 6096a98f708f2a12078ee0caf10cbda77a66db4c [
file
] [
log
] [
blame
]
// Check that the diagnostic for a pointer-to-member expression has the caret
// at the &.
struct
A
{
int
i
;
};
void
f
();
int
main
()
{
return
&
A
::
i
;
// { dg-error "10:cannot convert" }
}