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]

Re: multi-line literals


"Daniel Vogel" <vogel@epicgames.com> writes:

> gcc 3.0.2 stock build (and FWIW gcc 3.0) warn about multi-line literals
> being deprecated even though the code in question is #ifdef'ed out.
> 
> - Daniel Vogel, Programmer, Epic Games Inc.

I think this is correct.  If multi-line literals went away, then code like:

#if 0
"foo
"
#endif

would be an error, because '"foo' isn't a valid preprocessing token.

-- 
- Geoffrey Keating <geoffk@geoffk.org> <geoffk@redhat.com>


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