This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/21213] [3.3/3.4/4.0/4.1 Regression] segfault declaring a transparent union


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-04-25 13:58 -------
Reduced testcase:
union some_union {
}  __attribute__((__transparent_union__));


Note that testcase is not a regression.
But your testcase is a regression, and the reduced testcase as the following:
    union some_union {
        int;
    }  __attribute__((__transparent_union__));

Both are the same bug, we are trying to remove the transparent union but we are also trying to access 
the first field which does not exist.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
           Keywords|                            |ice-on-invalid-code
      Known to fail|                            |3.2.3 3.3.4 3.4.2 4.0.0
      Known to work|                            |2.95.3 3.0
   Last reconfirmed|0000-00-00 00:00:00         |2005-04-25 13:58:44
               date|                            |
            Summary|segfault declaring a        |[3.3/3.4/4.0/4.1 Regression]
                   |transparent union           |segfault declaring a
                   |                            |transparent union
   Target Milestone|---                         |3.4.4


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]