Skip to content

clang doesn't reject address of bitfield or vector element #2475

@lattner

Description

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

Extended Description

clang doesn't reject:

struct x {
int y : 4;
};

void foo(struct x *P) {
&P->y;
}

or:

void a() {
typedef float v4sf attribute ((vector_size (16)));
static v4sf q;
float* r = &q[0];
}

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