https://bugs.winehq.org/show_bug.cgi?id=48160
Bug ID: 48160 Summary: cl.exe (visual studio 2017) fails to compile c++ due to error C2177: constant too big Product: Wine Version: 4.20 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: luca.cunegondi@ocme.com Distribution: ---
when compiling c++ filles with options /TP /EHsc /std:c++17 cl.exe fails with the error described above, even for a single line program like:
#include <iostream> int main() { return 1;}
The error message is:
... include\limits(1153): error C2177: constant too big ... include\limits(1216): error C2177: constant too big
and is relative to DBL_MAX and LDBL_MAX constants Values of such constants are correct if compiling with preprocessing option only
There's no problem compiling C programs or using previous versions of Wine
thanks in advance
luca cunegondi