public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/26558] New: segfault on syntax error
@ 2006-03-04 15:51 debian-gcc at lists dot debian dot org
2006-03-04 15:55 ` [Bug c++/26558] " pinskia at gcc dot gnu dot org
` (10 more replies)
0 siblings, 11 replies; 12+ messages in thread
From: debian-gcc at lists dot debian dot org @ 2006-03-04 15:51 UTC (permalink / raw)
To: gcc-bugs
[forwarded from http://bugs.debian.org/349087]
g++ (GCC) 4.0.3 20060212 (prerelease) (Debian 4.0.2-9)
falk@gluck:~% cat main.cpp
template <typename T> class C {
template <int NO> int fun() { return NO;}
template <int NO> int fun2() {
return 0 << fun<NO>::; //bad code of course here :)
}
};
falk@gluck:~% g++ -c main.cpp
main.cpp: In member function 'int C<T>::fun2()':
main.cpp:4: 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.
Does not occur on alpha-linux-gnu, or with 3.3.6.
--
Summary: segfault on syntax error
Product: gcc
Version: 4.0.3
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: debian-gcc at lists dot debian dot org
GCC build triplet: i486-linux-gnu
GCC host triplet: i486-linux-gnu
GCC target triplet: i486-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26558
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug c++/26558] segfault on syntax error
2006-03-04 15:51 [Bug c++/26558] New: segfault on syntax error debian-gcc at lists dot debian dot org
@ 2006-03-04 15:55 ` pinskia at gcc dot gnu dot org
2006-03-04 15:55 ` pinskia at gcc dot gnu dot org
` (9 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-03-04 15:55 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from pinskia at gcc dot gnu dot org 2006-03-04 15:55 -------
Hmm, works with 4.1.0 20060208 on x86_64.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26558
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug c++/26558] segfault on syntax error
2006-03-04 15:51 [Bug c++/26558] New: segfault on syntax error debian-gcc at lists dot debian dot org
2006-03-04 15:55 ` [Bug c++/26558] " pinskia at gcc dot gnu dot org
@ 2006-03-04 15:55 ` pinskia at gcc dot gnu dot org
2006-03-04 15:56 ` pinskia at gcc dot gnu dot org
` (8 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-03-04 15:55 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from pinskia at gcc dot gnu dot org 2006-03-04 15:55 -------
And "4.0.3 20051105" on x86_64.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26558
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug c++/26558] segfault on syntax error
2006-03-04 15:51 [Bug c++/26558] New: segfault on syntax error debian-gcc at lists dot debian dot org
2006-03-04 15:55 ` [Bug c++/26558] " pinskia at gcc dot gnu dot org
2006-03-04 15:55 ` pinskia at gcc dot gnu dot org
@ 2006-03-04 15:56 ` pinskia at gcc dot gnu dot org
2006-03-04 16:01 ` [Bug c++/26558] [3.4/4.0/4.1/4.2 Regression] " pinskia at gcc dot gnu dot org
` (7 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-03-04 15:56 UTC (permalink / raw)
To: gcc-bugs
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 576 bytes --]
------- Comment #3 from pinskia at gcc dot gnu dot org 2006-03-04 15:56 -------
But not with "4.2.0 20060304" on x86_64:
t.cc: In member function int C<T>::fun2():
t.cc:4: internal compiler error: tree check: expected class type, have
exceptional (error_mark) in cp_parser_class_name, at cp/parser.c:12746
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
Must had been a change between there and today that caused it.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26558
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug c++/26558] [3.4/4.0/4.1/4.2 Regression] segfault on syntax error
2006-03-04 15:51 [Bug c++/26558] New: segfault on syntax error debian-gcc at lists dot debian dot org
` (2 preceding siblings ...)
2006-03-04 15:56 ` pinskia at gcc dot gnu dot org
@ 2006-03-04 16:01 ` pinskia at gcc dot gnu dot org
2006-03-11 3:22 ` mmitchel at gcc dot gnu dot org
` (6 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-03-04 16:01 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from pinskia at gcc dot gnu dot org 2006-03-04 16:01 -------
Actually it fails with checking since 3.4.0 so confirmed.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Keywords| |ice-checking
Known to fail|4.2.0 |4.2.0 4.0.0 4.1.0 3.4.0
Known to work|4.0.2 |
Last reconfirmed|0000-00-00 00:00:00 |2006-03-04 16:01:24
date| |
Summary|[4.2 Regression] segfault on|[3.4/4.0/4.1/4.2 Regression]
|syntax error |segfault on syntax error
Target Milestone|--- |4.0.3
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26558
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug c++/26558] [3.4/4.0/4.1/4.2 Regression] segfault on syntax error
2006-03-04 15:51 [Bug c++/26558] New: segfault on syntax error debian-gcc at lists dot debian dot org
` (3 preceding siblings ...)
2006-03-04 16:01 ` [Bug c++/26558] [3.4/4.0/4.1/4.2 Regression] " pinskia at gcc dot gnu dot org
@ 2006-03-11 3:22 ` mmitchel at gcc dot gnu dot org
2006-04-19 13:25 ` [Bug c++/26558] [4.0/4.1/4.2 " reichelt at gcc dot gnu dot org
` (5 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2006-03-11 3:22 UTC (permalink / raw)
To: gcc-bugs
--
mmitchel at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.0.3 |4.0.4
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26558
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug c++/26558] [4.0/4.1/4.2 Regression] segfault on syntax error
2006-03-04 15:51 [Bug c++/26558] New: segfault on syntax error debian-gcc at lists dot debian dot org
` (4 preceding siblings ...)
2006-03-11 3:22 ` mmitchel at gcc dot gnu dot org
@ 2006-04-19 13:25 ` reichelt at gcc dot gnu dot org
2006-04-19 21:35 ` patchapp at dberlin dot org
` (4 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-04-19 13:25 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from reichelt at gcc dot gnu dot org 2006-04-19 13:25 -------
Testing a patch.
--
reichelt at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |reichelt at gcc dot gnu dot
|dot org |org
Status|NEW |ASSIGNED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26558
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug c++/26558] [4.0/4.1/4.2 Regression] segfault on syntax error
2006-03-04 15:51 [Bug c++/26558] New: segfault on syntax error debian-gcc at lists dot debian dot org
` (5 preceding siblings ...)
2006-04-19 13:25 ` [Bug c++/26558] [4.0/4.1/4.2 " reichelt at gcc dot gnu dot org
@ 2006-04-19 21:35 ` patchapp at dberlin dot org
2006-04-19 22:03 ` reichelt at gcc dot gnu dot org
` (3 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: patchapp at dberlin dot org @ 2006-04-19 21:35 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from patchapp at dberlin dot org 2006-04-19 21:35 -------
Subject: Bug number PR c++/26558
A patch for this bug has been added to the patch tracker.
The mailing list url for the patch is
http://gcc.gnu.org/ml/gcc-patches/2006-04/msg00725.html
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26558
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug c++/26558] [4.0/4.1/4.2 Regression] segfault on syntax error
2006-03-04 15:51 [Bug c++/26558] New: segfault on syntax error debian-gcc at lists dot debian dot org
` (6 preceding siblings ...)
2006-04-19 21:35 ` patchapp at dberlin dot org
@ 2006-04-19 22:03 ` reichelt at gcc dot gnu dot org
2006-04-19 22:07 ` reichelt at gcc dot gnu dot org
` (2 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-04-19 22:03 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from reichelt at gcc dot gnu dot org 2006-04-19 22:03 -------
Subject: Bug 26558
Author: reichelt
Date: Wed Apr 19 22:03:24 2006
New Revision: 113096
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=113096
Log:
PR c++/26558
* parser.c (cp_parser_class_name): Check for invalid typenames.
Rearrange code.
* g++.dg/parse/template19.C: New test.
Added:
trunk/gcc/testsuite/g++.dg/parse/template19.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/parser.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26558
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug c++/26558] [4.0/4.1/4.2 Regression] segfault on syntax error
2006-03-04 15:51 [Bug c++/26558] New: segfault on syntax error debian-gcc at lists dot debian dot org
` (7 preceding siblings ...)
2006-04-19 22:03 ` reichelt at gcc dot gnu dot org
@ 2006-04-19 22:07 ` reichelt at gcc dot gnu dot org
2006-04-19 22:10 ` reichelt at gcc dot gnu dot org
2006-04-19 22:12 ` reichelt at gcc dot gnu dot org
10 siblings, 0 replies; 12+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-04-19 22:07 UTC (permalink / raw)
To: gcc-bugs
------- Comment #8 from reichelt at gcc dot gnu dot org 2006-04-19 22:07 -------
Subject: Bug 26558
Author: reichelt
Date: Wed Apr 19 22:07:25 2006
New Revision: 113097
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=113097
Log:
PR c++/26558
* parser.c (cp_parser_class_name): Check for invalid typenames.
Rearrange code.
* g++.dg/parse/template19.C: New test.
Added:
branches/gcc-4_1-branch/gcc/testsuite/g++.dg/parse/template19.C
Modified:
branches/gcc-4_1-branch/gcc/cp/ChangeLog
branches/gcc-4_1-branch/gcc/cp/parser.c
branches/gcc-4_1-branch/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26558
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug c++/26558] [4.0/4.1/4.2 Regression] segfault on syntax error
2006-03-04 15:51 [Bug c++/26558] New: segfault on syntax error debian-gcc at lists dot debian dot org
` (8 preceding siblings ...)
2006-04-19 22:07 ` reichelt at gcc dot gnu dot org
@ 2006-04-19 22:10 ` reichelt at gcc dot gnu dot org
2006-04-19 22:12 ` reichelt at gcc dot gnu dot org
10 siblings, 0 replies; 12+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-04-19 22:10 UTC (permalink / raw)
To: gcc-bugs
------- Comment #9 from reichelt at gcc dot gnu dot org 2006-04-19 22:10 -------
Subject: Bug 26558
Author: reichelt
Date: Wed Apr 19 22:10:10 2006
New Revision: 113098
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=113098
Log:
PR c++/26558
* parser.c (cp_parser_class_name): Check for invalid typenames.
Rearrange code.
* g++.dg/parse/template19.C: New test.
Added:
branches/gcc-4_0-branch/gcc/testsuite/g++.dg/parse/template19.C
Modified:
branches/gcc-4_0-branch/gcc/cp/ChangeLog
branches/gcc-4_0-branch/gcc/cp/parser.c
branches/gcc-4_0-branch/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26558
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug c++/26558] [4.0/4.1/4.2 Regression] segfault on syntax error
2006-03-04 15:51 [Bug c++/26558] New: segfault on syntax error debian-gcc at lists dot debian dot org
` (9 preceding siblings ...)
2006-04-19 22:10 ` reichelt at gcc dot gnu dot org
@ 2006-04-19 22:12 ` reichelt at gcc dot gnu dot org
10 siblings, 0 replies; 12+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-04-19 22:12 UTC (permalink / raw)
To: gcc-bugs
------- Comment #10 from reichelt at gcc dot gnu dot org 2006-04-19 22:12 -------
Fixed on mainline, 4.1 branch, and 4.0 branch.
--
reichelt at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26558
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2006-04-19 22:12 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-03-04 15:51 [Bug c++/26558] New: segfault on syntax error debian-gcc at lists dot debian dot org
2006-03-04 15:55 ` [Bug c++/26558] " pinskia at gcc dot gnu dot org
2006-03-04 15:55 ` pinskia at gcc dot gnu dot org
2006-03-04 15:56 ` pinskia at gcc dot gnu dot org
2006-03-04 16:01 ` [Bug c++/26558] [3.4/4.0/4.1/4.2 Regression] " pinskia at gcc dot gnu dot org
2006-03-11 3:22 ` mmitchel at gcc dot gnu dot org
2006-04-19 13:25 ` [Bug c++/26558] [4.0/4.1/4.2 " reichelt at gcc dot gnu dot org
2006-04-19 21:35 ` patchapp at dberlin dot org
2006-04-19 22:03 ` reichelt at gcc dot gnu dot org
2006-04-19 22:07 ` reichelt at gcc dot gnu dot org
2006-04-19 22:10 ` reichelt at gcc dot gnu dot org
2006-04-19 22:12 ` reichelt at gcc dot gnu dot 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).