Commit dcb489c
committed
Add MSVC configuration with /Zc:__cppstd set to c++20
Demonstrate bug #343 - since MSVC offers individual options to control
/std:c++20, /Zc:__cplusplus, and /Zc:preprocessor, it's possible to have
a combination where the compiler is in C++20 mode (and says so), but
the traditional preprocessor (which not support __VA_OPT__) is in use.
This configuration is commonly trigged by Qt6, which requires c++17,
suggests c++20, sets /Zc:__cpluspls (so it can #ifdef based on compiler),
but doesn't care about the preprocessor. MSVC still doesn't enable the
new /Zc:preprocessor by default, even with /std:c++20 or /permissive-.1 parent eaeb89c commit dcb489c
1 file changed
+14
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1675 | 1675 | | |
1676 | 1676 | | |
1677 | 1677 | | |
| 1678 | + | |
| 1679 | + | |
| 1680 | + | |
| 1681 | + | |
| 1682 | + | |
| 1683 | + | |
| 1684 | + | |
1678 | 1685 | | |
1679 | 1686 | | |
1680 | 1687 | | |
| |||
1729 | 1736 | | |
1730 | 1737 | | |
1731 | 1738 | | |
| 1739 | + | |
| 1740 | + | |
| 1741 | + | |
| 1742 | + | |
| 1743 | + | |
| 1744 | + | |
| 1745 | + | |
1732 | 1746 | | |
1733 | 1747 | | |
1734 | 1748 | | |
| |||
0 commit comments