]>
Commit | Line | Data |
---|---|---|
a1543fb1 IB |
1 | // https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90650 |
2 | // { dg-do compile } | |
3 | class c | |
4 | { | |
5 | static f () | |
6 | { | |
7 | return 0; | |
8 | } | |
9 | } | |
10 | ||
11 | void g () | |
12 | { | |
5fee5ec3 | 13 | if (0 & [0] & c.f()) {} // { dg-error "array operation .\\\[0\\\] & 0 & f\\(\\). without destination memory not allowed" } |
a1543fb1 | 14 | } |