public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/52031] New: G++ crashes when std::size_t is initalized with a float inside a template
@ 2012-01-28 23:14 joseph.h.garvin at gmail dot com
2012-01-28 23:48 ` [Bug c++/52031] " paolo.carlini at oracle dot com
0 siblings, 1 reply; 2+ messages in thread
From: joseph.h.garvin at gmail dot com @ 2012-01-28 23:14 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52031
Bug #: 52031
Summary: G++ crashes when std::size_t is initalized with a
float inside a template
Classification: Unclassified
Product: gcc
Version: 4.6.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: joseph.h.garvin@gmail.com
The following code snippet will crash G++ 4.6.1
#include <cstddef>
template<class T>
class B
{
static const std::size_t A = 1.5;
};
Output:
../crash.H:6:34: 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/ccdymJZR.out file, please attach this to
your bugreport.
The mentioned file is attached. Note that it must be a templated class for the
crash to occur.
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug c++/52031] G++ crashes when std::size_t is initalized with a float inside a template
2012-01-28 23:14 [Bug c++/52031] New: G++ crashes when std::size_t is initalized with a float inside a template joseph.h.garvin at gmail dot com
@ 2012-01-28 23:48 ` paolo.carlini at oracle dot com
0 siblings, 0 replies; 2+ messages in thread
From: paolo.carlini at oracle dot com @ 2012-01-28 23:48 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52031
Paolo Carlini <paolo.carlini at oracle dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |DUPLICATE
--- Comment #1 from Paolo Carlini <paolo.carlini at oracle dot com> 2012-01-28 23:44:38 UTC ---
Duplicate.
*** This bug has been marked as a duplicate of bug 49855 ***
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-01-28 23:44 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-01-28 23:14 [Bug c++/52031] New: G++ crashes when std::size_t is initalized with a float inside a template joseph.h.garvin at gmail dot com
2012-01-28 23:48 ` [Bug c++/52031] " 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).