public inbox for gcc-prs@sourceware.org help / color / mirror / Atom feed
From: Bruno Haible <bruno@clisp.org> To: gcc-gnats@gcc.gnu.org Subject: c++/9113: ICE with templates Date: Tue, 31 Dec 2002 06:26:00 -0000 [thread overview] Message-ID: <15889.42985.61383.994159@honolulu.ilog.fr> (raw) >Number: 9113 >Category: c++ >Synopsis: g++ crashes when compiling an initializer with templates >Confidential: no >Severity: serious >Priority: low >Responsible: unassigned >State: open >Class: ice-on-legal-code >Submitter-Id: net >Arrival-Date: Tue Dec 31 06:26:00 PST 2002 >Closed-Date: >Last-Modified: >Originator: Bruno Haible >Release: 3.2.1 >Organization: GNU hackers >Environment: System: FreeBSD linuix.math.u-bordeaux.fr 4.0-RELEASE FreeBSD 4.0-RELEASE #0: Mon Mar 20 22:50:22 GMT 2000 root@monster.cdrom.com:/usr/src/sys/compile/GENERIC i386 <machine, os, target, libraries (multiple lines)> host: i486-pc-freebsd-gnu build: i486-pc-freebsd-gnu target: i486-pc-freebsd-gnu configured with: ../gcc-3.2.1/configure --enable-shared --disable-nls --prefix=/gnu/usr --with-local-prefix=/gnu/usr/local --with-as=/gnu/usr/bin/as --with-gnu-as --with-ld=/gnu/usr/bin/ld --with-gnu-ld --enable-languages=c,c++,java,f77 --enable-threads --enable-__cxa_atexit i486-pc-freebsd-gnu >Description: $ g++ -S foo.cc foo.cc: In function `void __static_initialization_and_destruction_0(int, int)': foo.cc:14: Internal compiler error in simplify_gen_subreg, at simplify-rtx.c: 2711 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: Save this file ============================ foo.cc ====================================== template <char *p> struct Offset { int x; }; char pool[] = "Eins\0" "Zwei"; struct Temp { char *q; Temp (char *s) : q (s) {} template <char *p> operator Offset<p> () const { return (Offset<p>){x: q-p}; } }; Offset<pool> offsets[2] = { Temp(pool+0), Temp(pool+5) }; =========================================================================== and run "g++ -S foo.cc". >Fix: unknown. >Release-Note: >Audit-Trail: >Unformatted:
reply other threads:[~2002-12-31 14:26 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=15889.42985.61383.994159@honolulu.ilog.fr \ --to=bruno@clisp.org \ --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).