-
Notifications
You must be signed in to change notification settings - Fork 11.9k
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
Clang assertion failure in paren init in new expression #63008
Closed
Labels
c++20
clang:frontend
Language frontend issues, e.g. anything involving "Sema"
confirmed
Verified by a second party
crash
Prefer [crash-on-valid] or [crash-on-invalid]
release:backport
release:merged
Milestone
Comments
usx95
added
c++20
clang:frontend
Language frontend issues, e.g. anything involving "Sema"
labels
May 30, 2023
@llvm/issue-subscribers-c-20 |
@llvm/issue-subscribers-clang-frontend |
usx95
changed the title
Clang assertion failure in braced initialisation
Clang assertion failure in paren init in new expression
May 30, 2023
This looks like a relatively recent regression I wonder if @alanzhao1 recent changes might be involved. |
Candidate patch: https://reviews.llvm.org/D151763 |
Reopening so this can be backported to 16.x |
alanzhao1
added a commit
to alanzhao1/llvm-project
that referenced
this issue
May 31, 2023
…aggregate init expression The previous code incorrectly assumed that we would never call warnBracedScalarInit(...) with a EK_ParenAggInitMember. This patch fixes the bug by warning when a scalar member is initialized via a braced-init list when performing a parentehsized aggregate initialization. This behavior is consistent with parentehsized list aggregate initialization. Fixes llvm#63008 Reviewed By: shafik Differential Revision: https://reviews.llvm.org/D151763
/branch alanzhao1/llvm-project/backport-63008 |
/pull-request llvm/llvm-project-release-prs#463 |
tstellar
pushed a commit
that referenced
this issue
Jun 2, 2023
…aggregate init expression The previous code incorrectly assumed that we would never call warnBracedScalarInit(...) with a EK_ParenAggInitMember. This patch fixes the bug by warning when a scalar member is initialized via a braced-init list when performing a parentehsized aggregate initialization. This behavior is consistent with parentehsized list aggregate initialization. Fixes #63008 Reviewed By: shafik Differential Revision: https://reviews.llvm.org/D151763
karouzakisp
pushed a commit
to karouzakisp/llvm-project
that referenced
this issue
Jul 20, 2024
…aggregate init expression The previous code incorrectly assumed that we would never call warnBracedScalarInit(...) with a EK_ParenAggInitMember. This patch fixes the bug by warning when a scalar member is initialized via a braced-init list when performing a parentehsized aggregate initialization. This behavior is consistent with parentehsized list aggregate initialization. Fixes llvm#63008 Reviewed By: shafik Differential Revision: https://reviews.llvm.org/D151763
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
c++20
clang:frontend
Language frontend issues, e.g. anything involving "Sema"
confirmed
Verified by a second party
crash
Prefer [crash-on-valid] or [crash-on-invalid]
release:backport
release:merged
GCC:
g++.dg/cpp2a/paren-init20.C
https://godbolt.org/z/W6aMaE8fo
The text was updated successfully, but these errors were encountered: