This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug preprocessor/19475] [3.3/3.4/4.0/4.1 Regression] missing whitespace after macro name in C90 or C++


------- Additional Comments From zack at codesourcery dot com  2005-04-05 17:05 -------
Subject: Re: [PATCH] Fix PR preprocessor/19475

Jakub Jelinek <jakub@redhat.com> writes:

> On Tue, Apr 05, 2005 at 09:49:19AM -0700, Zack Weinberg wrote:
>> > This patch fixes PR preprocessor/19475 by issuing just warning, not pedwarn,
>> > for < ISO C99 if there is no whitespace between macro definition and
>> > replacement, but replacement starts with a basic character set character.
>> > Ok to commit?
>> 
>> OK except please remove the <?, >?, <?=, >?= testcases as those tokens
>> are probably going to be removed in the near future.
>
> I know, but that IMHO shouldn't matter for the testcase.
> #define a<?
> should be still treated like
> #define a <?
> in C90 (with a warning), no matter whether <? is a cpp token or 2 tokens.

Sure, but it's redundant with <= and so on.

zw


-- 


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]