Article View: gnu.gcc.bug
Article #6058gcc 2.7..2.1 core dumps
From: Fred J. Tydeman
Date: Thu, 12 Dec 1996 00:00
Date: Thu, 12 Dec 1996 00:00
53 lines
2191 bytes
2191 bytes
/* Program: gccemx03.c from tydeman @ tybor.com */
/* */
/* Problem: gcc 2.7.2+ core dumps trying to compile this program. */
/* It compiles fine on gcc 2.5.7 */
/* */
/* Hardware: Intel 80486DX/33 */
/* Operating system: OS/2 2.3 (Warp) */
/* Compiler: gcc 2.7.2.1 + emx 0.9c core dump */
/* Compiler: gcc 2.7.2 + emx 0.9b + fix 05 core dump */
/* Compiler: gcc 2.5.7 + emx 0.8h OK */
/* gcc options: */
/* "-ansi", */
/* "-pedantic-errors", */
/* "-W", */
/* "-Wall", */
/* "-Wtraditional", */
/* "-Wshadow", */
/* "-Wpointer-arith", */
/* "-Wcast-qual", */
/* "-Wcast-align", */
/* "-Wstrict-prototypes", */
/* "-Wmissing-prototypes", */
/* "-Wredundant-decls", */
/* "-Wno-unused", */
/* "-mieee-fp", */
/* "-fno-fast-math", */
/* "-ffloat-store", */
/* "-fno-builtin", */
/* "-Wconversion" */
#define NAN_LDBL (0.L/0.L)
#define NAN_DBL (0.0/0.0)
#define NAN_FLT (0.f/0.f)
int main( void ){
static const long double ld = 1.L;
int bad = 0;
if( ld < NAN_LDBL ) bad++;
if( ld < NAN_DBL ) bad++;
if( ld < NAN_FLT ) bad++;
return bad;
}
---
Fred J. Tydeman +49 (7031) 288-964 Tydeman Consulting
Meisenweg 20 tydeman@tybor.com Programming, testing, C/C++ training
D-71032 Boeblingen Voting member of X3J11 (ANSI "C")
Germany Sample FPCE tests: ftp://ftp.netcom.com/pub/ty/tydeman
Technical Details
Message-ID:
<m0vY8MN-000KB0C@hq.seicom.de>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 113d02,ad0dd2c73bda0a6a,start X-Google-Attributes: gid113d02,public From: "Fred J. Tydeman" <tydeman@tybor.com> Subject: gcc 2.7..2.1 core dumps Date: 1996/12/12 Message-ID: <m0vY8MN-000KB0C@hq.seicom.de> X-Deja-AN: 203688446 sender: bug-gcc-request@prep.ai.mit.edu priority: Normal content-type: text/plain; charset="iso-8859-1" x-gateway: relay4.UU.NET from bug-gcc to gnu.gcc.bug; Thu, 12 Dec 1996 05:55:15 EST mime-version: 1.0 reply-to: "Fred J. Tydeman" <tydeman@tybor.com> newsgroups: gnu.gcc.bug x-mailer: Fred J. Tydeman's Registered PMMail 1.53 For OS/2