repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Clean up some minor white space issues in trans-decl.c and trans-expr.c
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
parse
/
error20.C
blob
6119df9b2d1c45bb55e9f59f117136390c93a44d
1
// { dg-options "-fshow-column -ansi -pedantic-errors -Wno-long-long" }
2
// PR c++/17821
3
4
struct A {
5
A(int i) {}
6
};
7
struct B {
8
int i;
9
};
10
struct C {
11
B* p;
12
};
13
int main() {
14
C c;
15
A(c.p.i); // { dg-error "9:request for member 'i' in 'c.C::p', which is of pointer type 'B" }
16
return 0;
17
}
18