Skip to content

Defining/undefining builtin macros #4315

@llvmbot

Description

@llvmbot
Bugzilla Link 3943
Version unspecified
OS NetBSD
Reporter LLVM Bugzilla Contributor

Extended Description

The standard forbids this, but it is not a constraint. Clang diagnoses some but not others, e.g.

#undef __LINE__   // diagnosed
#undef __STDC_HOSTED__ // undiagnosed

Metadata

Metadata

Assignees

No one assigned

    Labels

    accepts-invalidbugzillaIssues migrated from bugzillaclang:frontendLanguage frontend issues, e.g. anything involving "Sema"worksformeResolved as "works for me"

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions