You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Strange that there's no problem with GCC/Clang... For now you can workaround it by using a local variable - I'll look at this at some point in the future... Thanks for reporting!
I can confirm that using /experimental:preprocessor fixes the problem, so I'll close this since it's an MSVC issue and there's nothing I can do anyway.
Description
The following test fails to compile on MSVC2017 (with
/std:c++17
and/permissive-
flags on):Preprocessing the source file shows that the offending line expands to:
Escaping in the
"foo(R\"(cl \"-DNAME=\\"Bob\\\"\" test.cpp)\") == \"\""
literal is problematic.Steps to reproduce
All
cl
command flags (excluding-I
paths):Extra information
The text was updated successfully, but these errors were encountered: