-
Notifications
You must be signed in to change notification settings - Fork 15.1k
Closed
Labels
clang:frontendLanguage frontend issues, e.g. anything involving "Sema"Language frontend issues, e.g. anything involving "Sema"conceptsC++20 conceptsC++20 conceptsregression:19Regression in 19 releaseRegression in 19 release
Description
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:
- https://github.com/mpusz/mp-units/blob/5f2cb780376592b967869544a0178e09a64ddfda/src/core/include/mp-units/framework/quantity_point.h#L111-L114
- https://github.com/mpusz/mp-units/blob/5f2cb780376592b967869544a0178e09a64ddfda/src/core/include/mp-units/framework/quantity_point_concepts.h#L35-L36
The same code works fine on clang-17, clang-18, gcc-13, and gcc-14.
Metadata
Metadata
Assignees
Labels
clang:frontendLanguage frontend issues, e.g. anything involving "Sema"Language frontend issues, e.g. anything involving "Sema"conceptsC++20 conceptsC++20 conceptsregression:19Regression in 19 releaseRegression in 19 release
Type
Projects
Status
Done