[cfe-dev] invalid-token-paste

Stephan T. Lavavej stl at exchange.microsoft.com
Wed Jul 18 18:34:21 PDT 2012

[James Dennett]
> I'd suggest filing a bug against MSVC, but it's not all that important
> -- MSVC will likely accept the corrected code, as will all conforming
> compilers.

Technically, N3376 16.3.3 [cpp.concat]/3 "If the result is not a valid preprocessing token, the behavior is undefined." allows VC to do whatever it wants with the bogus code, including accepting it silently.

(I would prefer a compiler error.)

Stephan T. Lavavej
Visual C++ Libraries Developer

More information about the cfe-dev mailing list