You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's looks like we have a lookup bug and we treat foo::bar as an acceptable template name.
So we are using foo::bar instead of the bar field of the B struct, which is not the intended behavior.
Aaron had a quick look at the issue and it can be also due to a parsing issue.
Because if we move struct B outside of struct A, we no longer get a compile time error,
it's the same thing when removing the template declaration from the struct.
Moreover, adding the -fdelayed-template-parsing flag fixes the issue.
https://godbolt.org/z/radhszraP
Clang output:
The text was updated successfully, but these errors were encountered: