Skip to content

--std=c++20 -fno-modules still sets __has_feature(modules) to 1 #57432

Open
@pkasting

Description

@pkasting

The following code should compile without error with --std=c++20 -fno-modules:

#if __has_feature(modules)
#error Module support found!
#endif

Actual result: error message.

Metadata

Metadata

Assignees

No one assigned

    Labels

    c++20clang:modulesC++20 modules and Clang Header Modules

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions