repo.or.cz
/
gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fortran: Fix PR 47485.
[gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
diagnostic
/
ptrtomem3.C
blob
6096a98f708f2a12078ee0caf10cbda77a66db4c
1
// Check that the diagnostic for a pointer-to-member expression has the caret
2
// at the &.
3
4
struct A
5
{
6
int i;
7
};
8
9
void f();
10
11
int main()
12
{
13
return &A::i; // { dg-error "10:cannot convert" }
14
}