Skip to content

reject attribute weak on internal variables #4354

@llvmbot

Description

@llvmbot
Bugzilla Link 3982
Resolution FIXED
Resolved on Mar 12, 2010 00:57
Version unspecified
OS All
Reporter LLVM Bugzilla Contributor

Extended Description

--
ddunbar@67-218-103-134:tmp$ cat x.c
static int x attribute((weak));
ddunbar@67-218-103-134:tmp$ clang -fsyntax-only x.c
ddunbar@67-218-103-134:tmp$ gcc -fsyntax-only x.c
x.c:1: error: weak declaration of 'x' must be public

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