public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/24589]  New: [4.1 Regression] wrong code with zero sized structs on CONSTRUCTOR
@ 2005-10-31  5:25 pinskia at gcc dot gnu dot org
  2005-10-31  5:26 ` [Bug middle-end/24589] " pinskia at gcc dot gnu dot org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-10-31  5:25 UTC (permalink / raw)
  To: gcc-bugs

Testcase:
   void abort (void);
   int ii;
   typedef struct {} raw_spinlock_t;

   typedef struct {
     raw_spinlock_t raw_lock;
   } spinlock_t;


   raw_spinlock_t one_raw_spinlock (void)
   {
       raw_spinlock_t raw_lock;
       ii++;
       return raw_lock;
   }

   int main(void)
   {
     spinlock_t lock = (spinlock_t) { .raw_lock = one_raw_spinlock() };
     if (ii != 1)
       abort ();
     return 0;
   }
-------
Forwarded from:
http://gcc.gnu.org/ml/gcc/2005-09/msg00260.html

Patch which needs testing posted:
http://gcc.gnu.org/ml/gcc/2005-09/msg00286.html


-- 
           Summary: [4.1 Regression] wrong code with zero sized structs on
                    CONSTRUCTOR
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Keywords: wrong-code
          Severity: normal
          Priority: P3
         Component: middle-end
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pinskia at gcc dot gnu dot org


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


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

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

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-10-31  5:25 [Bug middle-end/24589] New: [4.1 Regression] wrong code with zero sized structs on CONSTRUCTOR pinskia at gcc dot gnu dot org
2005-10-31  5:26 ` [Bug middle-end/24589] " pinskia at gcc dot gnu dot org
2005-10-31 13:16 ` pinskia at gcc dot gnu dot org
2005-11-03  6:41 ` mmitchel at gcc dot gnu dot org
2005-11-03 15:21 ` pinskia at gcc dot gnu dot org
2005-11-03 15:21 ` pinskia 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).