[LLVMbugs] [Bug 17426] New: Compilation fails for any file that includes stdlib.h when -fms-extensions is on
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Tue Oct 1 03:38:15 PDT 2013
http://llvm.org/bugs/show_bug.cgi?id=17426
Bug ID: 17426
Summary: Compilation fails for any file that includes stdlib.h
when -fms-extensions is on
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
Assignee: unassignedclangbugs at nondot.org
Reporter: frank at meerkoetter.org
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Created attachment 11310
--> http://llvm.org/bugs/attachment.cgi?id=11310&action=edit
the offending stdlib.h
Compiling the following test case fails:
#include <stdlib.h>
int main()
{
return 0;
}
with
/usr/bin/clang -fms-extensions -o test__ test.c
In file included from test.c:1:
/usr/include/stdlib.h:69:23: error: expected member name or ';' after
declaration specifiers
union wait *__uptr;
~~~~~ ^
1 error generated.
Its working when i remove the microsoft extensions from the commandline.
Unfortunately i want to use clang with a project that is making use of these
extensions so its not a workaround for me.
I am using clang from the nightlies. I am using a Kubuntu13.04.
--
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/20131001/80741335/attachment.html>
More information about the llvm-bugs
mailing list