define and single quotes and C++11 vs 14

Liu Hao ltpmouse@gmail.com
Tue Feb 7 07:31:00 GMT 2017


On 2017/2/7 14:58, Liu Hao wrote:
> That is incorrect. `1'b0` is a valid a preprocessing number token, in
> spite that it is not valid. (See paragraph 4 after the one you quoted.)
>
> The following program concatenates two invalid PP tokens, yielding a
> valid PP integral token that has the value `0x1b0`:
Sorry for the typo. It should be:

That is incorrect. `1'b0` is a valid a preprocessing number token, in
spite that it is not _a_ valid _integral literal_. (See paragraph 4 
after the one you quoted.)

The following program concatenates two invalid _integral literals_, 
yielding a valid _integral literal_ that has the value `0x1b0`:


-- 
Best regards,
ltpmouse



More information about the Gcc-help mailing list