Serious error-causing change in new CPP's -traditional behavior
Jason R Thorpe
thorpej@zembu.com
Wed May 10 22:13:00 GMT 2000
On Wed, May 10, 2000 at 04:43:34PM -0700, Zack Weinberg wrote:
> > dr-evil:thorpej 144$ /usr/libexec/cpp -lang-c -CC cpp-comments.c
> > # 1 "cpp-comments.c"
> > /* This is a comment. *//*CONSTCOND*/
> >
> >
> >
> >
> >
> >
> > void func(int arg)
> > {
> >
> > do { /* This is a comment. */ if (( arg ) > 0) foo(( arg )); } while (/*CONSTCOND*/0) ;
> > }
>
> Hmm. Could you live with the comments inside #defines not appearing
> in the location of the #define?
Lint only cares about the comments being in place where the macro is
expanded. It does not care about the comment being where the #define
directive is. So, from that perspective, I don't care.
--
-- Jason R. Thorpe <thorpej@zembu.com>
More information about the Gcc-bugs
mailing list