--- 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
--- Comment #8 from pinskia at gcc dot gnu dot org 2005-10-27 20:01 ---
I might look into this soon.
--
pinskia at gcc dot gnu dot org changed:
What|Removed |Added
--
What|Removed |Added
Target Milestone|4.0.2 |4.0.3
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23155
--- Additional Comments From janis at gcc dot gnu dot org 2005-09-16 20:22
---
The testcase from comment #5 ICEs starting with this patch from kenner:
http://gcc.gnu.org/ml/gcc-cvs/2004-06/msg00881.html
--
What|Removed |Added
--
--- Additional Comments From pinskia at gcc dot gnu dot org 2005-08-08
18:26 ---
: Search converges between 2004-06-20-trunk (#469) and 2004-06-22-trunk (#470).
Hmm, this was not introduced by the tree-ssa merge weird.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23155
--- Additional Comments From rguenth at gcc dot gnu dot org 2005-08-04
09:20 ---
It's an lvalue-cast, which we no longer support as an extension. So it's ICE on
invalid and a frontend bug. The C++ frontend spits out the interesting error
pr23155.c: In function void foo5(int):
pr2315