[Bug other/61905] zero variable length array bound in cp-demangle.c cplus_demangle_print_callback
mpolacek at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Sep 4 09:48:00 GMT 2014
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61905
Marek Polacek <mpolacek at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2014-09-04
Target Milestone|--- |4.9.2
Ever confirmed|0 |1
--- Comment #1 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
I see:
$ ./xgcc -B./ -c pr21255-2-mb.c
pr21255-2-mb.c: In function ‘f’:
pr21255-2-mb.c:19:1: internal compiler error: in ix86_print_operand, at
config/i386/i386.c:15232
}
^
/home/polacek/src/gcc/libiberty/cp-demangle.c:4065:40: runtime error: variable
length array bound evaluates to non-positive value 0
/home/polacek/src/gcc/libiberty/cp-demangle.c:4066:43: runtime error: variable
length array bound evaluates to non-positive value 0
0x21383e3 ix86_print_operand(_IO_FILE*, rtx_def*, int)
/home/polacek/src/gcc/gcc/config/i386/i386.c:15232
0xd2a08e output_operand(rtx_def*, int)
/home/polacek/src/gcc/gcc/final.c:3850
0xd2b67c output_asm_insn(char const*, rtx_def**)
/home/polacek/src/gcc/gcc/final.c:3748
0xd2f8c7 final_scan_insn(rtx_def*, _IO_FILE*, int, int, int*)
/home/polacek/src/gcc/gcc/final.c:2635
0xd31894 final(rtx_insn*, _IO_FILE*, int)
/home/polacek/src/gcc/gcc/final.c:2063
0xd33b22 rest_of_handle_final
/home/polacek/src/gcc/gcc/final.c:4472
0xd33b22 execute
/home/polacek/src/gcc/gcc/final.c:4547
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.
More information about the Gcc-bugs
mailing list