public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/50859] New: ICE when creating integral constant from real value in a template
@ 2011-10-24 23:31 bitbucket at mailinator dot com
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
0 siblings, 2 replies; 3+ messages in thread
From: bitbucket at mailinator dot com @ 2011-10-24 23:31 UTC (permalink / raw)
To: gcc-bugs
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/50859] ICE when creating integral constant from real value in a template
2011-10-24 23:31 [Bug c++/50859] New: ICE when creating integral constant from real value in a template bitbucket at mailinator dot com
@ 2011-10-24 23:49 ` redi at gcc dot gnu.org
2011-10-24 23:56 ` paolo.carlini at oracle dot com
1 sibling, 0 replies; 3+ messages in thread
From: redi at gcc dot gnu.org @ 2011-10-24 23:49 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50859
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |ice-on-valid-code
Status|UNCONFIRMED |NEW
Last reconfirmed| |2011-10-24
Known to work| |4.7.0
Ever Confirmed|0 |1
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-10-24 23:49:23 UTC ---
seems to be fixed on the trunk already
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/50859] ICE when creating integral constant from real value in a template
2011-10-24 23:31 [Bug c++/50859] New: ICE when creating integral constant from real value in a template bitbucket at mailinator dot com
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
1 sibling, 0 replies; 3+ messages in thread
From: paolo.carlini at oracle dot com @ 2011-10-24 23:56 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50859
Paolo Carlini <paolo.carlini at oracle dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |DUPLICATE
--- Comment #2 from Paolo Carlini <paolo.carlini at oracle dot com> 2011-10-24 23:54:46 UTC ---
Duplicate, already fixed for 4.6.2.
*** This bug has been marked as a duplicate of bug 49855 ***
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-10-24 23:56 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-10-24 23:31 [Bug c++/50859] New: ICE when creating integral constant from real value in a template bitbucket at mailinator dot com
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
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).