This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/23155] [4.0/4.1 Regression] Gimplification failed for union cast
- 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: 27 Oct 2005 21:15:12 -0000
- Subject: [Bug c/23155] [4.0/4.1 Regression] Gimplification failed for union cast
- References: <bug-23155-327@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #9 from pinskia at gcc dot gnu dot org 2005-10-27 21:15 -------
This is a combination of a GCC extension (of cast to union) and a C99 feature
(subscripting a non-lvalue array) so this is valid code (but undefined code)
even though it looks so weird.
Anyways I have a patch which I am testing.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |pinskia at gcc dot gnu dot
|dot org |org
Status|NEW |ASSIGNED
Keywords|accepts-invalid |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23155