-
Notifications
You must be signed in to change notification settings - Fork 444
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
Visibility bug in gcc-9 and below using concepts #1546
Comments
b52e3b5 is the first bad commit
|
marehr
added a commit
to marehr/range-v3
that referenced
this issue
Aug 10, 2020
ericniebler
added a commit
that referenced
this issue
Aug 14, 2020
fix #1546: Visibility bug in gcc-9 and below using concepts
marehr
added a commit
to marehr/seqan3
that referenced
this issue
Aug 14, 2020
See ericniebler/range-v3#1546 for further details.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The following code has unwanted side effects:
https://godbolt.org/z/rP1bGK
which makes any private/protected member public.
Expected output:
This is a known gcc-bug which was fixed in gcc-10. We internally have the following concept check to make sure we don't use any concept syntax that triggers this bug:
(I love this expression, because you can have self-warning code for concepts with concepts xD)
I tried to reduce the code and this came out:
https://godbolt.org/z/rP1bGK
Adding parenthesis around the
&&
expression, solves this issue.The text was updated successfully, but these errors were encountered: