http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46058
Summary: gcc crashes with lvalue error on the following Code Product: gcc Version: 4.5.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassig...@gcc.gnu.org ReportedBy: nik...@komani.de Created attachment 22070 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22070 Preprocessed c++ source that triggers the Bug This is the output of "gcc -v -save-temps -c -o commands.o commands.cpp" Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/lib/gcc/i686-pc-linux-gnu/4.5.1/lto-wrapper Target: i686-pc-linux-gnu Configured with: ../configure --prefix=/usr --enable-languages=c,c++,fortran,objc,obj-c++,ada --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --enable-gnu-unique-object --enable-lto --enable-plugin --disable-multilib --disable-libstdcxx-pch --with-system-zlib --with-ppl --with-cloog --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info Thread model: posix gcc version 4.5.1 (GCC) COLLECT_GCC_OPTIONS='-v' '-save-temps' '-c' '-o' 'commands.o' '-mtune=generic' '-march=pentiumpro' /usr/lib/gcc/i686-pc-linux-gnu/4.5.1/cc1plus -E -quiet -v -D_GNU_SOURCE commands.cpp -mtune=generic -march=pentiumpro -fpch-preprocess -o commands.ii ignoring nonexistent directory "/usr/lib/gcc/i686-pc-linux-gnu/4.5.1/../../../../i686-pc-linux-gnu/include" #include "..." search starts here: #include <...> search starts here: /usr/lib/gcc/i686-pc-linux-gnu/4.5.1/../../../../include/c++/4.5.1 /usr/lib/gcc/i686-pc-linux-gnu/4.5.1/../../../../include/c++/4.5.1/i686-pc-linux-gnu /usr/lib/gcc/i686-pc-linux-gnu/4.5.1/../../../../include/c++/4.5.1/backward /usr/local/include /usr/lib/gcc/i686-pc-linux-gnu/4.5.1/include /usr/lib/gcc/i686-pc-linux-gnu/4.5.1/include-fixed /usr/include End of search list. COLLECT_GCC_OPTIONS='-v' '-save-temps' '-c' '-o' 'commands.o' '-mtune=generic' '-march=pentiumpro' /usr/lib/gcc/i686-pc-linux-gnu/4.5.1/cc1plus -fpreprocessed commands.ii -quiet -dumpbase commands.cpp -mtune=generic -march=pentiumpro -auxbase-strip commands.o -version -o commands.s GNU C++ (GCC) version 4.5.1 (i686-pc-linux-gnu) compiled by GNU C version 4.5.1, GMP version 5.0.1, MPFR version 3.0.0-p3, MPC version 0.8.2 GGC heuristics: --param ggc-min-expand=97 --param ggc-min-heapsize=126654 GNU C++ (GCC) version 4.5.1 (i686-pc-linux-gnu) compiled by GNU C version 4.5.1, GMP version 5.0.1, MPFR version 3.0.0-p3, MPC version 0.8.2 GGC heuristics: --param ggc-min-expand=97 --param ggc-min-heapsize=126654 Compiler executable checksum: 09c286d6478a532084f45ddd675021da commands.cpp:12:67: internal compiler error: in lvalue_p_1, at cp/tree.c:156 Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions.