public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c++/5950: g++ - Internal error: Segmentation fault
@ 2002-03-13 14:46 gianni
  0 siblings, 0 replies; 3+ messages in thread
From: gianni @ 2002-03-13 14:46 UTC (permalink / raw)
  To: gcc-gnats


>Number:         5950
>Category:       c++
>Synopsis:       g++ - Internal error: Segmentation fault
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Mar 13 14:46:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Gianni Mariani
>Release:        3.0.4
>Organization:
>Environment:
Linux
>Description:

Trying to compile the file below generates a segmentation fault.

g++ yy.cpp -o xx
yy.cpp:16: Internal 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.

------------- yy.cpp ----

#include <iostream>

template <class foo> class xx {
public:
        int yy( foo );

};

template <class foo> int xx< foo >::yy( foo xx )
{
        return xx;
}


template int xx< short >::yy;

-----------------
>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


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

* Re: c++/5950: g++ - Internal error: Segmentation fault
@ 2002-10-27 13:46 Reichelt
  0 siblings, 0 replies; 3+ messages in thread
From: Reichelt @ 2002-10-27 13:46 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

The following reply was made to PR c++/5950; it has been noted by GNATS.

From: Reichelt <reichelt@igpm.rwth-aachen.de>
To: gcc-gnats@gcc.gnu.org, gcc-bugs@gcc.gnu.org, nobody@gcc.gnu.org,
        gianni@mariani.ws
Cc:  
Subject: Re: c++/5950: g++ - Internal error: Segmentation fault
Date: Mon, 28 Oct 2002 00:31:17 +0200

 Hi,
 
 the code is in fact illegal, it already crashes gcc 2.95.x.
 Here's a cleaned-up version testcase:
 
 --------------snip here----------------------------
 template <typename T> struct A
 {
   void foo () {}
 };
 
 template void A<int>::foo; // illegal, should be foo();
 --------------snip here----------------------------
 
 Greetings,
 Volker
 
 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=5950
 
 


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

* Re: c++/5950: g++ - Internal error: Segmentation fault
@ 2002-05-16  9:08 lerdsuwa
  0 siblings, 0 replies; 3+ messages in thread
From: lerdsuwa @ 2002-05-16  9:08 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, gianni, nobody

Synopsis: g++ - Internal error: Segmentation fault

State-Changed-From-To: open->analyzed
State-Changed-By: lerdsuwa
State-Changed-When: Thu May 16 09:08:52 2002
State-Changed-Why:
    Confirmed.  Still present in 3.1 branch and main trunk.

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


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

end of thread, other threads:[~2002-10-27 21:46 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-03-13 14:46 c++/5950: g++ - Internal error: Segmentation fault gianni
2002-05-16  9:08 lerdsuwa
2002-10-27 13:46 Reichelt

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).