public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/17655] New: g++ getting SEGFAULT compilling the code with HUGE_VAL comparasions
@ 2004-09-24 15:40 programm at metrocom dot ru
  2004-09-24 15:43 ` [Bug c++/17655] " programm at metrocom dot ru
                   ` (15 more replies)
  0 siblings, 16 replies; 17+ messages in thread
From: programm at metrocom dot ru @ 2004-09-24 15:40 UTC (permalink / raw)
  To: gcc-bugs

gcc crashes compiling the following code:

(cmdline is g++-3.4 test.cc)

extern "C" {
#include <math.h>
};

template<typename T> void GetFromString()
{
    if (HUGE_VAL) {};
    // The same result as above
    // if (10.0 == HUGE_VAL) {};
};

int main(char argc, char** argv)
{
  GetFromString<char>();
};

It reports:

test.cc: In function `void GetFromString() [with T = char]':
test.cc:14:   instantiated from here
test.cc:7: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.

g++ -v output:

Reading specs from /usr/local/lib/gcc/i686-pc-linux-gnu/3.4.2/specs
Configured with: ../gcc-3.4.2/configure --enable-version-specific-runtime-libs
Thread model: posix
gcc version 3.4.2

Preprocessored source is attached.

-- 
           Summary: g++ getting SEGFAULT compilling the code with HUGE_VAL
                    comparasions
           Product: gcc
           Version: 3.4.2
            Status: UNCONFIRMED
          Severity: critical
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: programm at metrocom dot ru
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17655


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

end of thread, other threads:[~2005-05-19 17:49 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-09-24 15:40 [Bug c++/17655] New: g++ getting SEGFAULT compilling the code with HUGE_VAL comparasions programm at metrocom dot ru
2004-09-24 15:43 ` [Bug c++/17655] " programm at metrocom dot ru
2004-09-24 15:43 ` programm at metrocom dot ru
2004-09-24 15:51 ` pinskia at gcc dot gnu dot org
2004-09-24 17:27 ` bangerth at dealii dot org
2004-09-24 18:08 ` programm at metrocom dot ru
2004-09-24 18:11 ` pinskia at gcc dot gnu dot org
2004-09-24 18:13 ` programm at metrocom dot ru
2004-09-24 18:23 ` programm at metrocom dot ru
2004-09-24 20:36 ` [Bug c++/17655] [3.3/3.4 regression] ICE with using a C99 initializer in an if-condition bangerth at dealii dot org
2004-09-24 20:46 ` pinskia at gcc dot gnu dot org
2004-09-27 13:29 ` programm at metrocom dot ru
2004-09-27 13:30 ` programm at metrocom dot ru
2004-09-27 13:34 ` pinskia at gcc dot gnu dot org
2004-11-01  0:47 ` mmitchel at gcc dot gnu dot org
2005-02-12 22:34 ` pinskia at gcc dot gnu dot org
2005-05-19 17:50 ` mmitchel at gcc dot gnu dot org

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