This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/12446] [3.3/3.4 regression] ICE in emit_move_insn on complicated array reference
- From: "ebotcazou at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 3 Oct 2003 10:00:08 -0000
- Subject: [Bug c/12446] [3.3/3.4 regression] ICE in emit_move_insn on complicated array reference
- References: <20030929202105.12446.kst@cts.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12446
------- Additional Comments From ebotcazou at gcc dot gnu dot org 2003-10-03 10:00 -------
Interestingly, when ptr is assigned after its declaration, the compiler emits:
pr12446.c: In function `main':
pr12446.c:17: error: incompatible types in assignment
which is only slightly better.
Both GCC 2.95.3 and 3.0.4 give:
pr12446.c: In function `main':
pr12446.c:17: invalid use of non-lvalue array
which is far better IMHO.