Skip to content

clang prints bogus type compatibility warning between constant and variable array types #2393

Closed
@efriedma-quic

Description

@efriedma-quic
Bugzilla Link 2021
Resolution FIXED
Resolved on Mar 12, 2010 00:59
Version unspecified
OS Linux

Extended Description

Testcase:
int a(int i) {
int (*pf)[2];
int (*pv)[i];
(i ? pf : pv);
}

This shouldn't warn because the pointed-to types are compatible. Easy fix to ASTContext, which I'll sort out in a bit.

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