Skip to content

clang fails parse stdio.h from (gentoo) glibc-2.6.1 #4043

@piotrrak

Description

@piotrrak
Bugzilla Link 3671
Resolution FIXED
Resolved on Mar 12, 2010 00:57
Version unspecified
OS Linux
Attachments Reduced testcase.
CC @DougGregor,@efriedma-quic,@pwo

Extended Description

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>

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugzillaIssues migrated from bugzillaclang:frontendLanguage frontend issues, e.g. anything involving "Sema"

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions