OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
PR c++/52685
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.dg
/
template
/
offsetof2.C
1
// PR c++/49085
2
3
template <class T>
4
struct A // { dg-error "declaration" }
5
{
6
int i, j;
7
int ar[__builtin_offsetof(A,j)]; // { dg-error "incomplete type" }
8
};
9
10
A<int> a;