From: billlanam AT california DOT com (Bill Lanam) Newsgroups: comp.os.msdos.djgpp Subject: Re: GCC Bug - Information Date: Tue, 04 Feb 1997 21:38:04 GMT Message-ID: <32f7a61a.13502432@seashell.california.com> References: <5d3co5$o7p AT huron DOT eel DOT ufl DOT edu> NNTP-Posting-Host: 140.174.210.234 Lines: 26 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp On 3 Feb 1997 00:50:13 GMT, afn03257 AT freenet2 DOT afn DOT org (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 >#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. No it is an extremely useful feature, for example lets say you change the name of a structure member then using the #define statement saves you the trouble of changing the member in a bunch of files (of course that does require that you not have any variables that are the same name as the member). Bill Lanam