public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug c++/46058] New: gcc crashes with lvalue error on the following Code @ 2010-10-17 17:05 niklas at komani dot de 2010-10-17 17:07 ` [Bug c++/46058] " niklas at komani dot de ` (7 more replies) 0 siblings, 8 replies; 9+ messages in thread From: niklas at komani dot de @ 2010-10-17 17:05 UTC (permalink / raw) To: gcc-bugs 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 <http://gcc.gnu.org/bugs.html> for instructions. ^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/46058] gcc crashes with lvalue error on the following Code 2010-10-17 17:05 [Bug c++/46058] New: gcc crashes with lvalue error on the following Code niklas at komani dot de @ 2010-10-17 17:07 ` niklas at komani dot de 2010-10-27 22:56 ` [Bug c++/46058] [4.5/4.6 Regression] " pinskia at gcc dot gnu.org ` (6 subsequent siblings) 7 siblings, 0 replies; 9+ messages in thread From: niklas at komani dot de @ 2010-10-17 17:07 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46058 --- Comment #1 from Niklas Schnelle <niklas at komani dot de> 2010-10-17 17:07:03 UTC --- Forgot to mention, it works with gcc 4.3 and clang ^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/46058] [4.5/4.6 Regression] gcc crashes with lvalue error on the following Code 2010-10-17 17:05 [Bug c++/46058] New: gcc crashes with lvalue error on the following Code niklas at komani dot de 2010-10-17 17:07 ` [Bug c++/46058] " niklas at komani dot de @ 2010-10-27 22:56 ` pinskia at gcc dot gnu.org 2010-11-12 14:22 ` rguenth at gcc dot gnu.org ` (5 subsequent siblings) 7 siblings, 0 replies; 9+ messages in thread From: pinskia at gcc dot gnu.org @ 2010-10-27 22:56 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46058 Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |ice-on-valid-code Status|UNCONFIRMED |NEW Last reconfirmed| |2010.10.27 22:55:58 Target Milestone|--- |4.5.2 Summary|gcc crashes with lvalue |[4.5/4.6 Regression] gcc |error on the following Code |crashes with lvalue error | |on the following Code Ever Confirmed|0 |1 --- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> 2010-10-27 22:55:58 UTC --- <<< Unknown tree: scope_ref struct StringLiterals dec >>> StringLiterals is not dependent so the scope_ref should have been resolved. 4.3.2 gave: t.cc:12: error: ‘StringLiterals::dec’ cannot appear in a constant-expression t.cc:12: error: template argument 3 is invalid But I think that is incorrect as that is a static field. Note 4.5.0 20100401 (experimental) [trunk revision 157933] accepted the code though. ^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/46058] [4.5/4.6 Regression] gcc crashes with lvalue error on the following Code 2010-10-17 17:05 [Bug c++/46058] New: gcc crashes with lvalue error on the following Code niklas at komani dot de 2010-10-17 17:07 ` [Bug c++/46058] " niklas at komani dot de 2010-10-27 22:56 ` [Bug c++/46058] [4.5/4.6 Regression] " pinskia at gcc dot gnu.org @ 2010-11-12 14:22 ` rguenth at gcc dot gnu.org 2010-11-12 15:50 ` hjl.tools at gmail dot com ` (4 subsequent siblings) 7 siblings, 0 replies; 9+ messages in thread From: rguenth at gcc dot gnu.org @ 2010-11-12 14:22 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46058 Richard Guenther <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P3 |P2 ^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/46058] [4.5/4.6 Regression] gcc crashes with lvalue error on the following Code 2010-10-17 17:05 [Bug c++/46058] New: gcc crashes with lvalue error on the following Code niklas at komani dot de ` (2 preceding siblings ...) 2010-11-12 14:22 ` rguenth at gcc dot gnu.org @ 2010-11-12 15:50 ` hjl.tools at gmail dot com 2010-11-25 0:36 ` jason at gcc dot gnu.org ` (3 subsequent siblings) 7 siblings, 0 replies; 9+ messages in thread From: hjl.tools at gmail dot com @ 2010-11-12 15:50 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46058 H.J. Lu <hjl.tools at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jason at redhat dot com --- Comment #3 from H.J. Lu <hjl.tools at gmail dot com> 2010-11-12 15:43:48 UTC --- It is caused by revision 161559: http://gcc.gnu.org/ml/gcc-cvs/2010-06/msg01477.html ^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/46058] [4.5/4.6 Regression] gcc crashes with lvalue error on the following Code 2010-10-17 17:05 [Bug c++/46058] New: gcc crashes with lvalue error on the following Code niklas at komani dot de ` (3 preceding siblings ...) 2010-11-12 15:50 ` hjl.tools at gmail dot com @ 2010-11-25 0:36 ` jason at gcc dot gnu.org 2010-12-03 16:57 ` jason at gcc dot gnu.org ` (2 subsequent siblings) 7 siblings, 0 replies; 9+ messages in thread From: jason at gcc dot gnu.org @ 2010-11-25 0:36 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46058 Jason Merrill <jason at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED CC| |jason at gcc dot gnu.org ^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/46058] [4.5/4.6 Regression] gcc crashes with lvalue error on the following Code 2010-10-17 17:05 [Bug c++/46058] New: gcc crashes with lvalue error on the following Code niklas at komani dot de ` (4 preceding siblings ...) 2010-11-25 0:36 ` jason at gcc dot gnu.org @ 2010-12-03 16:57 ` jason at gcc dot gnu.org 2010-12-03 18:44 ` jason at gcc dot gnu.org 2010-12-03 18:44 ` jason at gcc dot gnu.org 7 siblings, 0 replies; 9+ messages in thread From: jason at gcc dot gnu.org @ 2010-12-03 16:57 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46058 --- Comment #4 from Jason Merrill <jason at gcc dot gnu.org> 2010-12-03 16:56:42 UTC --- Author: jason Date: Fri Dec 3 16:56:37 2010 New Revision: 167435 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=167435 Log: PR c++/46058 * tree.c (lvalue_kind) [SCOPE_REF]: Handle non-dependent case. Added: trunk/gcc/testsuite/g++.dg/template/scope4.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/tree.c trunk/gcc/testsuite/ChangeLog ^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/46058] [4.5/4.6 Regression] gcc crashes with lvalue error on the following Code 2010-10-17 17:05 [Bug c++/46058] New: gcc crashes with lvalue error on the following Code niklas at komani dot de ` (5 preceding siblings ...) 2010-12-03 16:57 ` jason at gcc dot gnu.org @ 2010-12-03 18:44 ` jason at gcc dot gnu.org 2010-12-03 18:44 ` jason at gcc dot gnu.org 7 siblings, 0 replies; 9+ messages in thread From: jason at gcc dot gnu.org @ 2010-12-03 18:44 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46058 Jason Merrill <jason at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #6 from Jason Merrill <jason at gcc dot gnu.org> 2010-12-03 18:44:31 UTC --- Fixed. ^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/46058] [4.5/4.6 Regression] gcc crashes with lvalue error on the following Code 2010-10-17 17:05 [Bug c++/46058] New: gcc crashes with lvalue error on the following Code niklas at komani dot de ` (6 preceding siblings ...) 2010-12-03 18:44 ` jason at gcc dot gnu.org @ 2010-12-03 18:44 ` jason at gcc dot gnu.org 7 siblings, 0 replies; 9+ messages in thread From: jason at gcc dot gnu.org @ 2010-12-03 18:44 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46058 --- Comment #5 from Jason Merrill <jason at gcc dot gnu.org> 2010-12-03 18:44:07 UTC --- Author: jason Date: Fri Dec 3 18:44:04 2010 New Revision: 167438 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=167438 Log: PR c++/46058 * tree.c (lvalue_kind) [SCOPE_REF]: Handle non-dependent case. Added: branches/gcc-4_5-branch/gcc/testsuite/g++.dg/template/scope4.C Modified: branches/gcc-4_5-branch/gcc/cp/ChangeLog branches/gcc-4_5-branch/gcc/cp/tree.c branches/gcc-4_5-branch/gcc/testsuite/ChangeLog ^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2010-12-03 18:44 UTC | newest] Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2010-10-17 17:05 [Bug c++/46058] New: gcc crashes with lvalue error on the following Code niklas at komani dot de 2010-10-17 17:07 ` [Bug c++/46058] " niklas at komani dot de 2010-10-27 22:56 ` [Bug c++/46058] [4.5/4.6 Regression] " pinskia at gcc dot gnu.org 2010-11-12 14:22 ` rguenth at gcc dot gnu.org 2010-11-12 15:50 ` hjl.tools at gmail dot com 2010-11-25 0:36 ` jason at gcc dot gnu.org 2010-12-03 16:57 ` jason at gcc dot gnu.org 2010-12-03 18:44 ` jason at gcc dot gnu.org 2010-12-03 18:44 ` jason at gcc dot gnu.org
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).