Patch for PR 28288 & PR 14556, Remove <?and>? operators from C++

Steve Ellcey sje@cup.hp.com
Wed Aug 9 18:34:00 GMT 2006


> When this was being deprecated I gave Mark a testcase illustrating how the 
> extension causes us to mishandle valid code.  The following testcase 
> should be added to the testsuite as C++ code that is currently wrongly 
> rejected because of this extension, but should be accepted after the 
> patch.
> 
> #define foo < ## <?
> #define h(x) #x
> #define s(x) h(x)
> const char *p = s(foo);
> 
> -- 
> Joseph S. Myers
> joseph@codesourcery.com

OK I can add this test, I verified that it does compile with my patched
sources.

Steve Ellcey
sje@cup.hp.com



More information about the Gcc-patches mailing list