[LLVMbugs] [Bug 5670] New: Unknown type
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Wed Dec 2 14:15:40 PST 2009
http://llvm.org/bugs/show_bug.cgi?id=5670
Summary: Unknown type
Product: new-bugs
Version: unspecified
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: normal
Priority: P2
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: cyrildupuit at hotmail.com
CC: llvmbugs at cs.uiuc.edu
Hello,
I am new to clang and I have tried to compile a simple application to test the
analysis functionnality of this compiler.
I have built the compiler as specified in
http://clang.llvm.org/get_started.html without any problem.
After that, I have tried to compile a simple example to verify that the
compiler works fine on my machine.
This is the file (file.c) :
#include <stdlib.h>
int main(void)
{
int * p;
p = malloc(100);
if(p == (void *)0) free(p);
p[0] = 10;
return p[101];
}
The command line is as follow :
clang-cc -DWIN32 -D_DEBUG -D_CONSOLE file.c -analyze
The result of the execution is :
In file included from file.c:1:
In file included from C:\Program Files\Microsoft Visual Studio
9.0\VC\include/st
dlib.h:23:
C:\Program Files\Microsoft Visual Studio 9.0\VC\include/crtdefs.h:562:9: error:
unknown type name '__int64'
typedef __int64 __time64_t; /* 64-bit time value */
^
In file included from file.c:1:
C:\Program Files\Microsoft Visual Studio 9.0\VC\include/stdlib.h:384:9: error:
u
nknown type name '__int64'
__int64 __cdecl _abs64(__int64);
^
The type __int64 is not known by the compiler.
Is it possible to support this variable type ?
I am very interresting to test the analysis functionnality of this compiler.
Best regards,
Cyril
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list