public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c++/8476: SIGSEGV on explicit call of dtor of static member in template
@ 2002-11-06  4:46 Detlef Vollmann
  0 siblings, 0 replies; 4+ messages in thread
From: Detlef Vollmann @ 2002-11-06  4:46 UTC (permalink / raw)
  To: gcc-gnats; +Cc: dv


>Number:         8476
>Category:       c++
>Synopsis:       SIGSEGV on explicit call of dtor of static member in template
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          ice-on-legal-code
>Submitter-Id:   net
>Arrival-Date:   Wed Nov 06 04:46:06 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Detlef Vollmann
>Release:        3.3 20021105 (experimental)
>Organization:
vollmann engineering gmbh
>Environment:
System: Linux dwarf 2.4.3-XFS #7 Mon Aug 6 18:43:20 CEST 2001 i686 unknown
Architecture: i686

	
host: i686-pc-linux-gnu
build: i686-pc-linux-gnu
target: i686-pc-linux-gnu
configured with: /pdsrc/gcc/cvs/gcc/configure --program-suffix=-test --prefix=/local/gcc-test --enable-shared --enable-threads=posix --enable-version-specific-runtime-libs --enable-languages=c,c++
>Description:
	tst.cc: In static member function `static void T<Y>::f() [with Y = char]':
	tst.cc:21:   instantiated from here
	tst.cc:3: internal compiler error: Segmentation fault

>How-To-Repeat:
	just compile attached source
>Fix:
	
// tst.cc
struct X
{
    ~X() { }
};

template <class Y> struct T
{
public:
    static void f()
    {
        x.~X();
    }

    static X x;
};

int
main()
{
    T<char>::f();

    return 0;
}

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


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

* Re: c++/8476: SIGSEGV on explicit call of dtor of static member in template
@ 2002-11-06 16:16 Joe Buck
  0 siblings, 0 replies; 4+ messages in thread
From: Joe Buck @ 2002-11-06 16:16 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

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

From: Joe Buck <jbuck@synopsys.com>
To: gcc-gnats@gcc.gnu.org, dv@vollmann.ch, gcc-bugs@gcc.gnu.org
Cc:  
Subject: Re: c++/8476: SIGSEGV on explicit call of dtor of static member in
 template
Date: Wed, 06 Nov 2002 16:11:03 -0800

 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8476
 
 This is a duplicate of PR 8372.  It is exactly the same core dump in 
 cc1plus, with
 exactly the same description, so I will close it.  8372 remains a 
 high-priority
 regression.
 
 


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

* Re: c++/8476: SIGSEGV on explicit call of dtor of static member in template
@ 2002-11-06 16:12 jbuck
  0 siblings, 0 replies; 4+ messages in thread
From: jbuck @ 2002-11-06 16:12 UTC (permalink / raw)
  To: dv, gcc-bugs, gcc-prs, nobody

Synopsis: SIGSEGV on explicit call of dtor of static member in template

State-Changed-From-To: analyzed->closed
State-Changed-By: jbuck
State-Changed-When: Wed Nov  6 16:12:09 2002
State-Changed-Why:
    This is a duplicate of PR 8372.

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


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

* Re: c++/8476: SIGSEGV on explicit call of dtor of static member in template
@ 2002-11-06 14:00 bangerth
  0 siblings, 0 replies; 4+ messages in thread
From: bangerth @ 2002-11-06 14:00 UTC (permalink / raw)
  To: dv, gcc-bugs, gcc-prs, nobody

Synopsis: SIGSEGV on explicit call of dtor of static member in template

State-Changed-From-To: open->analyzed
State-Changed-By: bangerth
State-Changed-When: Wed Nov  6 14:00:04 2002
State-Changed-Why:
    Confirmed. A regression introduced between 2.95 and 3.0.

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


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

end of thread, other threads:[~2002-11-07  0:16 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-11-06  4:46 c++/8476: SIGSEGV on explicit call of dtor of static member in template Detlef Vollmann
2002-11-06 14:00 bangerth
2002-11-06 16:12 jbuck
2002-11-06 16:16 Joe Buck

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