[cfe-dev] Compiler error including windows.h

Liu Hao via cfe-dev cfe-dev at lists.llvm.org
Sun May 7 20:56:41 PDT 2017


On 2017/5/8 10:52, Nico Weber via cfe-dev wrote:
> It's a bug in the mingw headers. If you pass -fms-extensions 
> -fms-extensions, clang will accept that code since Microsoft's headers 
> have the same bug.
Is it? Despite lack of a constructor the structure `GUID` is an 
aggregate, so aggregate initialization takes place. We do use the 
aggregate initialization syntax in our headers which is the same in C, 
C++98 and C++11, so there is no need to define a constructor explicitly.

-- 
Best regards,
LH_Mouse




More information about the cfe-dev mailing list