-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Anonymous union members initialized with designated initializers does not compile inside template #65143
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
Labels
clang:frontend
Language frontend issues, e.g. anything involving "Sema"
confirmed
Verified by a second party
Comments
@llvm/issue-subscribers-clang-frontend |
Confirmed. |
Fznamznon
added a commit
to Fznamznon/llvm-project
that referenced
this issue
Oct 20, 2023
Skip anonymous members when rebuilding DesignatedInitExpr since designated inits for them are meant to be created during `InitListChecker::CheckDesignatedInitializer` routine. Fixes llvm#65143
Fznamznon
added a commit
that referenced
this issue
Oct 23, 2023
Skip anonymous members when rebuilding `DesignatedInitExpr` since designated inits for them are meant to be created during `InitListChecker::CheckDesignatedInitializer` routine. Fixes #65143
ahatanaka
pushed a commit
to swiftlang/llvm-project
that referenced
this issue
Nov 3, 2023
Skip anonymous members when rebuilding `DesignatedInitExpr` since designated inits for them are meant to be created during `InitListChecker::CheckDesignatedInitializer` routine. Fixes llvm#65143
ahatanaka
pushed a commit
to swiftlang/llvm-project
that referenced
this issue
Nov 7, 2023
Skip anonymous members when rebuilding `DesignatedInitExpr` since designated inits for them are meant to be created during `InitListChecker::CheckDesignatedInitializer` routine. Fixes llvm#65143
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
clang:frontend
Language frontend issues, e.g. anything involving "Sema"
confirmed
Verified by a second party
The following code fails to compile on at least clang-14,15,16:
With the following message:
Removing the template on
f
resolves the error.Godbolt: https://godbolt.org/z/Tod1oa1Gd
The text was updated successfully, but these errors were encountered: