Skip to content

Flags specifics to a language mode are not diagnosed in other language modes #139058

Open
@cor3ntin

Description

@cor3ntin
clang -x c -fexceptions -frtti -fchar8_t -fcoroutines -fcxx-modules

We do not emit diagnostics for -fexceptions -frtti -fchar8_t, which are not valid C options.

(but we seem to do for -fcoroutines -fcxx-modules)

https://compiler-explorer.com/z/48hc6Krh3

Metadata

Metadata

Assignees

No one assigned

    Labels

    clang:diagnosticsNew/improved warning or error message in Clang, but not in clang-tidy or static analyzerclang:driver'clang' and 'clang++' user-facing binaries. Not 'clang-cl'confirmedVerified by a second party

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions