www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/02/04/13:46:40

From: Tudor <tudor AT cam DOT org>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: GCC Bug - Information
Date: Tue, 04 Feb 1997 10:45:16 -0800
Organization: Communications Accesibles Montreal
Lines: 23
Message-ID: <32F783BC.2C13@cam.org>
References: <5d3co5$o7p AT huron DOT eel DOT ufl DOT edu>
Reply-To: tudor AT cam DOT org
NNTP-Posting-Host: dynamicppp-210.hip.cam.org
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Daniel P Hudson wrote:
> 
>      The GNU C preprocessor has a known bug that is present in 2.7.2.1
> and probably earlier versions.
> 
> EX code.
> 
> #include <stdio.h>
> #define x 10
> 
> int main(void)
> {
>   printf("%f\n", .x); // should cause a preprocessor error
>   return 0;
> }
> 
> It is not real important, however it is an ANSI violation some people
> may want to look into.
OK. Why is it an ANSI violation?
It actually compiled fine :-) and it prints something like 0.100000 .
-- 
tudor 'at' cam 'dot' org
'This is Scott Nudds of the Borg. C is irrelevant.'

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019