Re: [C/C++] Fix PR c++/50608

2011-11-04 Thread Jason Merrill
OK. Jason

[C/C++] Fix PR c++/50608

2011-10-13 Thread Eric Botcazou
Hi, this is a regression present on the mainline and 4.6 branch, introduced by the offsetof folding change. The compiler now rejects: int fails = __builtin_offsetof (C, b.offset); error: cannot apply 'offsetof' to a non constant address whereas it still accepts: int works = (int)(&(((C*)0)->