[Bug c/39773] error: object with variably modified type must have no linkage

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Tue Apr 14 22:08:00 GMT 2009



------- Comment #2 from pinskia at gcc dot gnu dot org  2009-04-14 22:08 -------
(((long)(unsigned int)&(((ABC *)0)->abcC)) is not a valid C90/C99 constant
expression.  Use the offsetof macro from stdlib.h.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39773



More information about the Gcc-bugs mailing list