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

Open
wants to merge 1 commit into
base: dev
Choose a base branch
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.)
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