[Bug middle-end/42543] ICE when using va_arg
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=42543 Andrew Pinski changed: What|Removed |Added Known to work||4.6.4, 4.7.1 Status|NEW |RESOLVED Target Milestone|--- |4.6.0 Known to fail||4.5.3 Resolution|--- |FIXED --- Comment #6 from Andrew Pinski --- Fixed in GCC 4.6.0, there was many var_arg changes in GCC 4.6.0 that would have fixed this.
[Bug middle-end/42543] ICE when using va_arg
-- rguenth at gcc dot gnu dot org changed: What|Removed |Added Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Keywords|ice-on-valid-code |ice-on-invalid-code Last reconfirmed|-00-00 00:00:00 |2009-12-31 16:52:54 date|| http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42543
[Bug middle-end/42543] ICE when using va_arg
--- Comment #3 from pinskia at gcc dot gnu dot org 2009-12-29 17:17 --- The trunk still ICEs: gimplification failed: (char *) args2.4 nop_expr 0x43600ab8 t.c:56:40: internal compiler error: gimplification failed Please submit a full bug report, That is an ICE with i686-darwin. But I think it will also ICE on GNU/Linux too. -- pinskia at gcc dot gnu dot org changed: What|Removed |Added CC||pinskia at gcc dot gnu dot ||org Severity|minor |normal Component|c |middle-end GCC host triplet|Windows 7 | GCC target triplet||i?86-*-* Keywords||ice-on-valid-code Summary|internal compiler error: in |ICE when using va_arg |gimplify_expr, at | |gimplify.c:7098 | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42543
[Bug middle-end/42543] ICE when using va_arg
--- Comment #4 from hjl dot tools at gmail dot com 2009-12-29 17:32 --- I am not sure if --- char* FormatStringEx (char str[], size_t max_length, char templ[], void* args, unsigned int flags) { ... void *args2; char *arg,c; ... while (index-- 0 (arg=va_arg((va_list)args2,char*)) != NULL) ; ... --- is valid C. But gcc could do better to recover. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42543
[Bug middle-end/42543] ICE when using va_arg
--- Comment #5 from hjl dot tools at gmail dot com 2009-12-29 17:33 --- Icc 11.1 generates: [...@gnu-6 rrs]$ /opt/intel/Compiler/11.1/059/bin/intel64/icc -S pr42543.c pr42543.c(55): error: cast to type va_list is not allowed while (index-- 0 (arg=va_arg((va_list)args2,char*)) != NULL) ; ^ compilation aborted for pr42543.c (code 2) [...@gnu-6 rrs]$ -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42543