Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Variable template specialization must be explicitly 'inline' #100

Closed
wants to merge 1 commit into from

Conversation

stbergmann
Copy link

...or else there would be multiple definitions of it across TUs. (With GCC, this only hit since
https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=82cd63a63eaa61a4ed5c4029a1869be7446ecb3c " c++: Implement CWG2387 - Linkage of const-qualified variable template [PR109126]". With Clang, it never hit because QFLOAT16_IS_NATIVE is explicitly disabled for Clang in qtypes.h.)

...or else there would be multiple definitions of it across TUs.  (With GCC,
this only hit since
<https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=82cd63a63eaa61a4ed5c4029a1869be7446ecb3c>
" c++: Implement CWG2387 - Linkage of const-qualified variable template
[PR109126]".  With Clang, it never hit because QFLOAT16_IS_NATIVE is explicitly
disabled for Clang in qtypes.h.)
Copy link

cla-assistant bot commented Nov 15, 2024

CLA assistant check
All committers have signed the CLA.

@stbergmann
Copy link
Author

seen fixed meanwhile by a06f3e8 "Fix ODR violation for IsFloatType_v"

@stbergmann stbergmann closed this Nov 18, 2024
@stbergmann stbergmann deleted the missing-inline branch November 18, 2024 07:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant