Skip to content

[clang++-19][regression] "error: type constraint differs in template redeclaration" #110231

Closed
@mpusz

Description

@mpusz

I get the following error while compiling on clang-19:

[build] ../../src/core/include/mp-units/framework/quantity_point.h:111:26: error: type constraint differs in template redeclaration
[build]   111 | MP_UNITS_EXPORT template<QuantitySpec auto QS>
[build]       |                          ^
[build] ../../src/core/include/mp-units/framework/quantity_point_concepts.h:35:26: note: previous template declaration is here
[build]    35 | MP_UNITS_EXPORT template<QuantitySpec auto QS>
[build]       |                          ^

Here are the offending declarations:

The same code works fine on clang-17, clang-18, gcc-13, and gcc-14.

Metadata

Metadata

Assignees

No one assigned

    Labels

    clang:frontendLanguage frontend issues, e.g. anything involving "Sema"conceptsC++20 conceptsregression:19Regression in 19 release

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions