[LLVMbugs] [Bug 3671] New: clang fails parse stdio.h from (gentoo) glibc-2.6.1
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Wed Feb 25 16:27:24 PST 2009
http://llvm.org/bugs/show_bug.cgi?id=3671
Summary: clang fails parse stdio.h from (gentoo) glibc-2.6.1
Product: clang
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Semantic Analyzer
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: piotr.rak at gmail.com
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=2611)
--> (http://llvm.org/bugs/attachment.cgi?id=2611)
Reduced testcase.
As Eli Friedman requested in
http://lists.cs.uiuc.edu/pipermail/cfe-dev/2009-February/004474.html reporting
it here.
Here is a code causing problem:
struct __gconv_step_data {};
typedef struct __gconv_info
{
void * dumb;
__extension__ struct __gconv_step_data __data [];
} *__gconv_t;
typedef union
{
struct __gconv_info __cd;
struct
{
struct __gconv_info __cd;
struct __gconv_step_data __data;
} __combined;
} _G_iconv_t;
reduced.c:15:25: error: variable sized type '__cd' must be at end of struct or
class
struct __gconv_info __cd;
union _G_iconv_t definition is in <_G_config.h>, struct _gconv_info in
<gconv.h>
--
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