This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Is this code valid under g++
Oscar Fuentes <ofv at wanadoo dot es> writes:
> LLeweLLyn Reese <llewelly at lifesupport dot shutdown dot com> writes:
>
> >> while (*item == ' ' || *item == ' ')
> >
> > No. ' ' is a multicharacter char literal. It is not part of standard
> > C++,
>
> That was what I thought, but it's ok, although its value is
> implementation-defined. See 2.13.2/1
Thank you. I had thought it was undefined, but now I see it isn't.
Next question - where are the gcc docs for multicharacter char literals?
>
> > not portable in general, and AFAIK a gcc extension. If you
> > mean a tab, use \t.
>
> [snip]
>
> --
> Oscar