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

2009-04-15 Thread rguenth at gcc dot gnu dot org
--- Comment #3 from rguenth at gcc dot gnu dot org 2009-04-15 11:21 --- Indeed. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added Status|UNCONFIR

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

2009-04-14 Thread pinskia at gcc dot gnu dot org
--- 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

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

2009-04-14 Thread marcus at jet dot franken dot de
--- Comment #1 from marcus at jet dot franken dot de 2009-04-14 22:06 --- Created an attachment (id=17639) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17639&action=view) generated.i gcc -c -O2 generated.i -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39773