Skip to content

empty union initialization crashes clang #2791

@nunoplopes

Description

@nunoplopes
Bugzilla Link 2419
Resolution FIXED
Resolved on Jun 06, 2008 15:13
Version unspecified
OS All
CC @efriedma-quic

Extended Description

The following crashes clang -emit-llvm:

struct Mem {
union {
} u;
};

struct Mem *columnMem(){
static const struct Mem nullMem = { {} };
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugzillaIssues migrated from bugzillaclang:codegenIR generation bugs: mangling, exceptions, etc.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions