public inbox for gcc-prs@sourceware.org help / color / mirror / Atom feed
From: rassahah@cs.tu-berlin.de To: gcc-gnats@gcc.gnu.org Subject: optimization/8913: internal compiler error: in simplify_gen_subreg, at simplify-rtx.c Date: Thu, 12 Dec 2002 05:56:00 -0000 [thread overview] Message-ID: <20021212134900.9574.qmail@sources.redhat.com> (raw) >Number: 8913 >Category: optimization >Synopsis: internal compiler error: in simplify_gen_subreg, at simplify-rtx.c >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: ice-on-legal-code >Submitter-Id: net >Arrival-Date: Thu Dec 12 05:56:02 PST 2002 >Closed-Date: >Last-Modified: >Originator: Rasmus Hahn >Release: gcc version 3.3 from cvs 20021206 to 20021212 >Organization: >Environment: i686-pc-linux-gnu gcc-3.3 compiled with one week old gcc-3.3 >Description: This is an error in the c++ compiler when compiling with optimization turned on. Internal compiler error when using template class as constructor arg. Program: see ho-to-repeat. If no destructor is given or no optimization is used program compiles. This bug is not in my version of gcc-3.1 so it arrived somewhere since then. $ gcc -v Reading specs from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3/specs Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-threads --enable-languages=c,c++,objective-c : (reconfigured) ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-threads --enable-languages=c,c++,objc Thread model: posix gcc version 3.3 20021206 (experimental) $ g++ -c -O compiler-3.3-20021206-failure.cc compiler-3.3-20021206-failure.cc: In function `void test()': compiler-3.3-20021206-failure.cc:10: internal compiler error: in simplify_gen_subreg, at simplify-rtx.c:2673 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: template <class CLS> struct Ref { Ref(const CLS *obj){ } ~Ref(); /* presence of destructor decl causes ICE with -O */ }; struct Object { }; struct User : public Object { User (Ref<Object> obj) { } }; void test() { User a (0); } >Fix: >Release-Note: >Audit-Trail: >Unformatted:
reply other threads:[~2002-12-12 13:56 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20021212134900.9574.qmail@sources.redhat.com \ --to=rassahah@cs.tu-berlin.de \ --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).