public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/8999: SegFault after illegal template declaration
@ 2002-12-19  6:52 lerdsuwa
  0 siblings, 0 replies; 3+ messages in thread
From: lerdsuwa @ 2002-12-19  6:52 UTC (permalink / raw)
  To: bangerth, gcc-bugs, gcc-prs, nobody

Synopsis: SegFault after illegal template declaration

State-Changed-From-To: open->analyzed
State-Changed-By: lerdsuwa
State-Changed-When: Thu Dec 19 06:52:38 2002
State-Changed-Why:
    Confirmed.  Bug in error recovery.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8999


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: c++/8999: SegFault after illegal template declaration
@ 2003-01-01 15:52 neroden
  0 siblings, 0 replies; 3+ messages in thread
From: neroden @ 2003-01-01 15:52 UTC (permalink / raw)
  To: bangerth, gcc-bugs, gcc-prs, nobody

Synopsis: SegFault after illegal template declaration

State-Changed-From-To: analyzed->closed
State-Changed-By: neroden
State-Changed-When: Wed Jan  1 07:52:21 2003
State-Changed-Why:
    Now gives the following errors on mainline:
    ice.cxx:2: error: expected type-name
    ice.cxx:2: error: expected type-name
    ice.cxx:2: error: ISO C++ forbids declaration of `parameter' with no type
    Closing.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8999


^ permalink raw reply	[flat|nested] 3+ messages in thread

* c++/8999: SegFault after illegal template declaration
@ 2002-12-18 15:16 bangerth
  0 siblings, 0 replies; 3+ messages in thread
From: bangerth @ 2002-12-18 15:16 UTC (permalink / raw)
  To: gcc-gnats


>Number:         8999
>Category:       c++
>Synopsis:       SegFault after illegal template declaration
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    unassigned
>State:          open
>Class:          ice-on-illegal-code
>Submitter-Id:   net
>Arrival-Date:   Wed Dec 18 15:16:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Wolfgang Bangerth
>Release:        unknown-1.0
>Organization:
>Environment:
gcc 3.3 CVS of last week
>Description:
While loosing overview of a small template metaprogramming
project, I happened to write something like
--------------------------------
template <typename ST, T> struct X {};

int main () {};
--------------------------------
The second template parameter of X is incorrectly given.

This crashes the compiler:

tmp/g> /home/bangerth/bin/gcc-3.3-pre/bin/c++ -c y.cc
y.cc:1: error: parse error before `>' token
y.cc:3: error: cannot declare `::main' to be a template
y.cc:3: 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.
>How-To-Repeat:

>Fix:
Write correct code.
>Release-Note:
>Audit-Trail:
>Unformatted:


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-01-01 15:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-12-19  6:52 c++/8999: SegFault after illegal template declaration lerdsuwa
  -- strict thread matches above, loose matches on Subject: below --
2003-01-01 15:52 neroden
2002-12-18 15:16 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).