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/12446] [3.3/3.4 regression] ICE in emit_move_insn on complicated array reference


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.


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