This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/21213] [3.3/3.4/4.0/4.1 Regression] segfault declaring a transparent union
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 25 Apr 2005 13:58:46 -0000
- Subject: [Bug c/21213] [3.3/3.4/4.0/4.1 Regression] segfault declaring a transparent union
- References: <20050425134418.21213.javier.pello@urjc.es>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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