https://llvm.org/bugs/show_bug.cgi?id=26234

            Bug ID: 26234
           Summary: [ms compat] compilation of spec2000: 255.vortex is
                    failing with typedef redefinition
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
          Assignee: unassignedclangb...@nondot.org
          Reporter: andrey.kules...@intel.com
                CC: dgre...@apple.com, llvm-bugs@lists.llvm.org
    Classification: Unclassified

==========Environment============
OS: Windows
Visual Studio: VS2015
Clang: trunk

=========How to reproduce========
//this lines were taken from spec2000: 255.vortex
//now it is failed to be compiled with clang 
#include <windows.h>
typedef size_t SIZE_T;

$ clang test.cpp -c -m32

=========Error===================
test.cpp:2:16: error: typedef redefinition with different types ('size_t' (aka
'unsigned int') vs 'ULONG_PTR'
      (aka 'unsigned long'))
typedef size_t SIZE_T;
               ^
c:/Program files (x86)/Windows Kits/8.1/include/shared/basetsd.h:415:19: note:
previous definition is here
typedef ULONG_PTR SIZE_T, *PSIZE_T;
                  ^

==================
Intel Compiler Engineer 
Kuleshov Andrey

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to