public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/9228: [3.4 regression] [New parser] SegFault on illegal template
@ 2003-01-15 9:22 reichelt
0 siblings, 0 replies; 3+ messages in thread
From: reichelt @ 2003-01-15 9:22 UTC (permalink / raw)
To: bangerth, gcc-bugs, gcc-prs, nobody
Synopsis: [3.4 regression] [New parser] SegFault on illegal template
State-Changed-From-To: open->closed
State-Changed-By: reichelt
State-Changed-When: Wed Jan 15 01:22:03 2003
State-Changed-Why:
Fixed in gcc 3.4-20030113.
I now get
PR9228.cc:1: error: expected nested-name-specifier
PR9228.cc:1: error: expected function-definition
for both code snippets.
(Testcase in preparation.)
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9228
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: c++/9228: [3.4 regression] [New parser] SegFault on illegal template
@ 2003-01-08 16:46 Wolfgang Bangerth
0 siblings, 0 replies; 3+ messages in thread
From: Wolfgang Bangerth @ 2003-01-08 16:46 UTC (permalink / raw)
To: nobody; +Cc: gcc-prs
The following reply was made to PR c++/9228; it has been noted by GNATS.
From: Wolfgang Bangerth <bangerth@ticam.utexas.edu>
To: gcc-gnats@gcc.gnu.org
Cc:
Subject: Re: c++/9228: [3.4 regression] [New parser] SegFault on illegal
template
Date: Wed, 8 Jan 2003 10:34:28 -0600 (CST)
Possibly related:
------------------------
struct O {
struct I { I (int); };
};
template <class T_>
typename O<T_>::I f () { return 1; };
-------------------------
deal.II/base> /home/bangerth/bin/gcc-3.3-pre/bin/c++ -c g.cc
g.cc:6: error: non-template type `O' used as a template
g.cc:6: error: `I' is not a class or namespace
g.cc:6: error: ISO C++ forbids declaration of `f' with no type
deal.II/base>
deal.II/base>
deal.II/base> /home/bangerth/bin/gcc-3.4-pre/bin/c++ -c g.cc
g.cc:6: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
-------------------------------------------------------------------------
Wolfgang Bangerth email: bangerth@ticam.utexas.edu
www: http://www.ticam.utexas.edu/~bangerth/
^ permalink raw reply [flat|nested] 3+ messages in thread
* c++/9228: [3.4 regression] [New parser] SegFault on illegal template
@ 2003-01-08 15:56 bangerth
0 siblings, 0 replies; 3+ messages in thread
From: bangerth @ 2003-01-08 15:56 UTC (permalink / raw)
To: gcc-gnats
>Number: 9228
>Category: c++
>Synopsis: [3.4 regression] [New parser] SegFault on illegal template
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Jan 08 07:56:02 PST 2003
>Closed-Date:
>Last-Modified:
>Originator: bangerth@ticam.utexas.edu
>Release: unknown-1.0
>Organization:
>Environment:
3.4 with new parser
>Description:
This is a new ICE on this little illegal piece of code:
--------------------------------
template <class T>
typename O<T>::I f () {}
--------------------------------
Since O is not a declared class, this should fail, and
indeed does with 3.3:
deal.II/base> /home/bangerth/bin/gcc-3.3-pre/bin/c++ -c d.cc
d.cc:2: error: parse error before `<' token
However, with 3.4 I now get
deal.II/base> /home/bangerth/bin/gcc-3.4-pre/bin/c++ -c d.cc
d.cc:2: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
What's a little annoying is that the ICE happens before
any message is written, so it is not obvious right away
what's wrong.
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2003-01-15 9:22 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-01-15 9:22 c++/9228: [3.4 regression] [New parser] SegFault on illegal template reichelt
-- strict thread matches above, loose matches on Subject: below --
2003-01-08 16:46 Wolfgang Bangerth
2003-01-08 15:56 bangerth
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).