| Issue |
110231
|
| Summary |
[clang++-19] "error: type constraint differs in template redeclaration"
|
| Labels |
clang
|
| Assignees |
|
| Reporter |
mpusz
|
I get the following error while compiling on clang-19:
```text
[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.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs