public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "bitbucket at mailinator dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/50859] New: ICE when creating integral constant from real value in a template Date: Mon, 24 Oct 2011 23:31:00 -0000 [thread overview] Message-ID: <bug-50859-4@http.gcc.gnu.org/bugzilla/> (raw) http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50859 Bug #: 50859 Summary: ICE when creating integral constant from real value in a template Classification: Unclassified Product: gcc Version: 4.6.1 Status: UNCONFIRMED Severity: minor Priority: P3 Component: c++ AssignedTo: unassigned@gcc.gnu.org ReportedBy: bitbucket@mailinator.com $ curl 'http://169.254.169.254/latest/meta-data/ami-id' && echo ami-21f53948 $ cat /etc/issue Ubuntu 11.10 \n \l $ uname -a Linux domU-12-31-39-12-AC-DE 3.0.0-12-virtual #20-Ubuntu SMP Fri Oct 7 18:19:02 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux $ g++ --version g++ (Ubuntu/Linaro 4.6.1-9ubuntu3) 4.6.1 Copyright (C) 2011 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. $ cat ice.cc template <class T> void f() { const int INTEGRAL_CONSTANT = 1.0; } $ g++ ice.cc ice.cc: In function ‘void f()’: ice.cc:3:33: internal compiler error: in fold_convert_const_int_from_real, at fold-const.c:1562 Please submit a full bug report, with preprocessed source if appropriate. See <file:///usr/share/doc/gcc-4.6/README.Bugs> for instructions. Preprocessed source stored into /tmp/ccRBRVx3.out file, please attach this to your bugreport. $ cat /tmp/ccRBRVx3.out // /usr/lib/gcc/x86_64-linux-gnu/4.6.1/cc1plus -quiet -imultilib . -imultiarch x86_64-linux-gnu -D_GNU_SOURCE ice.cc -quiet -dumpbase ice.cc -mtune=generic -march=x86-64 -auxbase ice -fstack-protector -o - -frandom-seed=0 # 1 "ice.cc" # 1 "<built-in>" # 1 "<command-line>" # 1 "ice.cc" template <class T> void f() { const int INTEGRAL_CONSTANT = 1.0; } $ This error does not appear in g++ 4.4.1
next reply other threads:[~2011-10-24 23:31 UTC|newest] Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top 2011-10-24 23:31 bitbucket at mailinator dot com [this message] 2011-10-24 23:49 ` [Bug c++/50859] " redi at gcc dot gnu.org 2011-10-24 23:56 ` paolo.carlini at oracle dot com
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=bug-50859-4@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@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).