public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/39773]  New: error: object with variably modified type must have no linkage
@ 2009-04-14 21:51 marcus at jet dot franken dot de
  2009-04-14 22:07 ` [Bug c/39773] " marcus at jet dot franken dot de
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: marcus at jet dot franken dot de @ 2009-04-14 21:51 UTC (permalink / raw)
  To: gcc-bugs

new with GCC TRUNK:

LANG=C /home/marcus/projects/gcc.trunk/BIN/bin/gcc -m32 -c  -O2  ~/generated.i 
/home/marcus/generated.i: In function 'test_pack_ABC':
/home/marcus/generated.i:12: error: object with variably modified type must
have no linkage

This built fine with previous gcc.


-- 
           Summary: error: object with variably modified type must have no
                    linkage
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: marcus at jet dot franken dot de
 GCC build triplet: x86_64-unknown-linux-gnu
  GCC host triplet: x86_64-unknown-linux-gnu
GCC target triplet: x86_64-unknown-linux-gnu


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


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug c/39773] error: object with variably modified type must have no linkage
  2009-04-14 21:51 [Bug c/39773] New: error: object with variably modified type must have no linkage marcus at jet dot franken dot de
@ 2009-04-14 22:07 ` marcus at jet dot franken dot de
  2009-04-14 22:08 ` pinskia at gcc dot gnu dot org
  2009-04-15 11:21 ` rguenth at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: marcus at jet dot franken dot de @ 2009-04-14 22:07 UTC (permalink / raw)
  To: gcc-bugs



------- 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


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug c/39773] error: object with variably modified type must have no linkage
  2009-04-14 21:51 [Bug c/39773] New: error: object with variably modified type must have no linkage marcus at jet dot franken dot de
  2009-04-14 22:07 ` [Bug c/39773] " marcus at jet dot franken dot de
@ 2009-04-14 22:08 ` pinskia at gcc dot gnu dot org
  2009-04-15 11:21 ` rguenth at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2009-04-14 22:08 UTC (permalink / raw)
  To: gcc-bugs



------- 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


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug c/39773] error: object with variably modified type must have no linkage
  2009-04-14 21:51 [Bug c/39773] New: error: object with variably modified type must have no linkage marcus at jet dot franken dot de
  2009-04-14 22:07 ` [Bug c/39773] " marcus at jet dot franken dot de
  2009-04-14 22:08 ` pinskia at gcc dot gnu dot org
@ 2009-04-15 11:21 ` rguenth at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-04-15 11:21 UTC (permalink / raw)
  To: gcc-bugs



------- 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|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-04-15 11:21 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-04-14 21:51 [Bug c/39773] New: error: object with variably modified type must have no linkage marcus at jet dot franken dot de
2009-04-14 22:07 ` [Bug c/39773] " marcus at jet dot franken dot de
2009-04-14 22:08 ` pinskia at gcc dot gnu dot org
2009-04-15 11:21 ` rguenth at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).