public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c++/8228: ICE on HUGE_VAL in template code
@ 2002-10-14 19:06 sebor
  0 siblings, 0 replies; 3+ messages in thread
From: sebor @ 2002-10-14 19:06 UTC (permalink / raw)
  To: gcc-gnats


>Number:         8228
>Category:       c++
>Synopsis:       ICE on HUGE_VAL in template code
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          ice-on-legal-code
>Submitter-Id:   net
>Arrival-Date:   Mon Oct 14 19:06:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     sebor@roguewave.com
>Release:        3.2
>Organization:
>Environment:
Linux, glibc 2.1
>Description:
The program below causes an ICE with gcc 3.2:

$ cat t.cpp; g++ --version; g++ t.cpp
#include <math.h>

template <class T>
void foo ()
{
    if (HUGE_VAL == 0.0L);
}

int main ()
{
    foo<int>();
}

g++ (GCC) 3.2
Copyright (C) 2002 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.

t.cpp: In function `void foo() [with T = int]':
t.cpp:11:   instantiated from here
t.cpp:6: internal error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.

Preprocessed with this version of glibc, foo contains this:

template <class T>
void foo ()
{
    if ((__extension__ ((union { unsigned char __c[8]; double __d; }) { __c: { 0
, 0, 0, 0, 0, 0, 0xf0, 0x7f } }).__d) == 0.0L);
}
>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: c++/8228: ICE on HUGE_VAL in template code
@ 2003-01-27 22:14 nathan
  0 siblings, 0 replies; 3+ messages in thread
From: nathan @ 2003-01-27 22:14 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, nobody, sebor

Synopsis: ICE on HUGE_VAL in template code

State-Changed-From-To: analyzed->closed
State-Changed-By: nathan
State-Changed-When: Mon Jan 27 22:14:39 2003
State-Changed-Why:
    fixed on mainline, and IIRC on the 3.3 branch

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8228


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: c++/8228: ICE on HUGE_VAL in template code
@ 2002-10-27  7:30 lerdsuwa
  0 siblings, 0 replies; 3+ messages in thread
From: lerdsuwa @ 2002-10-27  7:30 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, nobody, sebor

Synopsis: ICE on HUGE_VAL in template code

State-Changed-From-To: open->analyzed
State-Changed-By: lerdsuwa
State-Changed-When: Sun Oct 27 07:30:35 2002
State-Changed-Why:
    Confirmed.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8228


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-01-27 22:14 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-14 19:06 c++/8228: ICE on HUGE_VAL in template code sebor
2002-10-27  7:30 lerdsuwa
2003-01-27 22:14 nathan

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).