[Bug c++/19710] New: ice on invalid one line C++ code
dcb314 at hotmail dot com
gcc-bugzilla@gcc.gnu.org
Sun Jan 30 13:16:00 GMT 2005
Hello there,
I just tried to compile the following illegal C++ code on a
i686-pc-linux-gnu box with the latest gcc 3.4 snapshot 20050128
char fred = ' ;
The compiler said
[dcb@localhost Alphasrc]$ ~/gnu/20050128/results/bin/g++ -c jan29a.cc
jan29a.cc:2: error: missing terminating ' character
jan29a.cc:2: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
Here is a bit more detail, provided by valgrind
[dcb@localhost Alphasrc]$ /home/dcb/valgrind/results.220/bin/valgrind
--tool=memcheck -q --trace-children=yes /home/dcb/gnu/20050128/results/bin/g++
jan29a.cc
jan29a.cc:2: error: missing terminating ' character
==12828== Invalid read of size 1
==12828== at 0x844BFC7: _cpp_lex_direct (cpplex.c:820)
==12828== by 0x844CA1B: _cpp_lex_token (cpplex.c:710)
==12828== by 0x844D57B: cpp_get_token (cppmacro.c:1061)
==12828== by 0x817065C: c_lex_with_flags (c-lex.c:308)
==12828== Address 0x30 is not stack'd, malloc'd or (recently) free'd
jan29a.cc:2: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
[dcb@localhost Alphasrc]$
--
Summary: ice on invalid one line C++ code
Product: gcc
Version: 3.4.4
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: dcb314 at hotmail dot com
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19710
More information about the Gcc-bugs
mailing list