From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12318 invoked by alias); 24 Sep 2004 15:40:26 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 12310 invoked by uid 48); 24 Sep 2004 15:40:25 -0000 Date: Fri, 24 Sep 2004 15:40:00 -0000 From: "programm at metrocom dot ru" To: gcc-bugs@gcc.gnu.org Message-ID: <20040924154023.17655.programm@metrocom.ru> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug c++/17655] New: g++ getting SEGFAULT compilling the code with HUGE_VAL comparasions X-Bugzilla-Reason: CC X-SW-Source: 2004-09/txt/msg02968.txt.bz2 List-Id: gcc crashes compiling the following code: (cmdline is g++-3.4 test.cc) extern "C" { #include }; template void GetFromString() { if (HUGE_VAL) {}; // The same result as above // if (10.0 == HUGE_VAL) {}; }; int main(char argc, char** argv) { GetFromString(); }; 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