From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5908 invoked by alias); 17 Oct 2010 17:05:48 -0000 Received: (qmail 5898 invoked by uid 22791); 17 Oct 2010 17:05:47 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,TW_CX,TW_DC X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 17 Oct 2010 17:05:40 +0000 From: "niklas at komani dot de" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/46058] New: gcc crashes with lvalue error on the following Code X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: niklas at komani dot de X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Date: Sun, 17 Oct 2010 17:05:00 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2010-10/txt/msg01410.txt.bz2 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: unassigned@gcc.gnu.org ReportedBy: niklas@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 for instructions.