public inbox for gcc-prs@sourceware.org help / color / mirror / Atom feed
From: Detlef Vollmann <dv@vollmann.ch> To: gcc-gnats@gcc.gnu.org Cc: dv@vollmann.ch Subject: c++/8476: SIGSEGV on explicit call of dtor of static member in template Date: Wed, 06 Nov 2002 04:46:00 -0000 [thread overview] Message-ID: <200211061241.NAA30282@vollmann.ch> (raw) >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:
next reply other threads:[~2002-11-06 12:46 UTC|newest] Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top 2002-11-06 4:46 Detlef Vollmann [this message] 2002-11-06 14:00 bangerth 2002-11-06 16:12 jbuck 2002-11-06 16:16 Joe Buck
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=200211061241.NAA30282@vollmann.ch \ --to=dv@vollmann.ch \ --cc=gcc-gnats@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).