Skip to content

Compiling c++20 code with -Wpre-c++17-compat causes a crash #57793

Closed as not planned
@Drew-j-Smith

Description

@Drew-j-Smith

Compiler Explorer

template <typename T>
struct foo {};

template <foo x>
constexpr static auto bar = x;

Passing a templated type without specifying the template with -Wpre-c++17-compat crashes the compiler

Metadata

Metadata

Assignees

No one assigned

    Labels

    clang:diagnosticsNew/improved warning or error message in Clang, but not in clang-tidy or static analyzercrashPrefer [crash-on-valid] or [crash-on-invalid]duplicateResolved as duplicate

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions