public inbox for gcc-prs@sourceware.org help / color / mirror / Atom feed
From: pss@pixar.com To: gcc-gnats@gcc.gnu.org Subject: c++/8513: g++ internal compiler error Date: Sat, 09 Nov 2002 20:26:00 -0000 [thread overview] Message-ID: <200211100421.gAA4L2t32625@zort.pixar.com> (raw) >Number: 8513 >Category: c++ >Synopsis: g++ internal compiler error >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: ice-on-legal-code >Submitter-Id: net >Arrival-Date: Sat Nov 09 20:26:01 PST 2002 >Closed-Date: >Last-Modified: >Originator: >Release: 3.1 or 3.2 >Organization: Pixar Animation Studios >Environment: System: Linux zort 2.4.9-13psmp #1 SMP Tue Nov 13 15:24:04 EST 2001 i686 unknown Architecture: i686 host: i686-pc-linux-gnu build: i686-pc-linux-gnu target: i686-pc-linux-gnu configured with: ../gcc-3.2/configure --prefix=/pixar/d2 --enable-languages=c,c++ --disable-nls --disable-shared >Description: When running g++ 3.1 or 3.2 on the following input, I get an ICE: r.cpp: In static member function `static void (* A::GetFunc())()': r.cpp:15: Internal compiler error in c_expand_expr, at c-common.c:3646 >How-To-Repeat: Run "g++ -c" on the following code. (I simplified it as much as possible.) ---------------- typedef void (*FuncType)(); class A { public: template<class T> static void Func(); static FuncType GetFunc(); }; template <class T> class B {}; FuncType A::GetFunc() { return Func<int>; } ---------------- >Fix: Work-around: Change the last line to "return A::Func<int>" and it works ok. >Release-Note: >Audit-Trail: >Unformatted:
next reply other threads:[~2002-11-10 4:26 UTC|newest] Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top 2002-11-09 20:26 pss [this message] 2002-11-09 23:47 paolo 2003-01-03 20:31 paolo
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=200211100421.gAA4L2t32625@zort.pixar.com \ --to=pss@pixar.com \ --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).