Skip to content

Sema doesn't merge array definitions #2472

@lattner

Description

@lattner
Bugzilla Link 2100
Resolution FIXED
Resolved on Mar 12, 2010 00:57
Version unspecified
OS All
CC @efriedma-quic,@nunoplopes

Extended Description

Codegen crashes on this:
static int a[10];
static int a[] = { 1, 2, 3 };

because sema is saying the type of the second 'a' is int[3] instead of int[10]. Apparently sema should merge the previous int[10] into the array type before analyzing the initializer.

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