[BUG] MSVC (C++20) emits a warning when compiling lowered Cpp1 after using Cppfront with -include-std
#929
Labels
bug
Something isn't working
-include-std
#929
Describe the bug
In C++20 mode, MSVC reports an
STL4038
warning regarding<stdfloat>
when compiling Cpp1 code that was generated by Cppfront with the-include-std
flag.To Reproduce
Run Cppfront with the
-in
or-include-std
flag on this code:Then compile the result with MSVC with
/std:c++20
.See here on Godbolt.
This warning is emitted:
Additional context
In
cpp2util.h
the test for including<stdfloat>
is:This returns true even when building for C++20 with MSVC, and the
<stdfloat>
header contains this:The text was updated successfully, but these errors were encountered: