[llvm-bugs] [Bug 26234] New: [ms compat] compilation of spec2000: 255.vortex is failing with typedef redefinition

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Jan 21 08:07:25 PST 2016


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: unassignedclangbugs at nondot.org
          Reporter: andrey.kuleshov at intel.com
                CC: dgregor at apple.com, llvm-bugs at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20160121/c38f57e7/attachment-0001.html>


More information about the llvm-bugs mailing list