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
2013-04-30 Richard Biener <rguenther@suse.de>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
parse
/
offsetof8.C
blob
e613ddcbb9af5062ab93fc2177bc0383b6bd28c5
1
// PR c++/35321
2
3
struct A
4
{
5
A operator[] (int);
6
};
7
8
struct B
9
{
10
A a;
11
};
12
13
void foo()
14
{
15
__builtin_offsetof(B, a[0]); /* { dg-error "cannot apply 'offsetof' when 'operator\\\[\\\]' is overloaded" } */
16
}