Skip to content

clang: used type 'union u' where arithmetic or pointer type is required #3372

@llvmbot

Description

@llvmbot
Bugzilla Link 3000
Resolution DUPLICATE
Resolved on Mar 12, 2010 00:57
Version unspecified
OS All
Blocks #3150
Reporter LLVM Bugzilla Contributor
CC @efriedma-quic,@nunoplopes

Extended Description

union u { int a, b; };

void f2(union u);

void f1() {
f2((union u) 0);
}

:6:8: error: used type 'union u' where arithmetic or pointer type is required
f2((union u) 0);
^ ~
1 diagnostic generated.

llvm/clang r58543 (trunk)

Metadata

Metadata

Assignees

No one assigned

    Labels

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

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions