Skip to content

PR for llvm/llvm-project#63008 #463

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

Merged
merged 1 commit into from
Jun 1, 2023
Merged

Conversation

llvmbot
Copy link
Member

@llvmbot llvmbot commented May 31, 2023

@llvmbot
Copy link
Member Author

llvmbot commented May 31, 2023

@shafik What do you think about merging this PR to the release branch?

@tstellar
Copy link
Contributor

tstellar commented Jun 1, 2023

Can someone rebase this pull request?

@erichkeane
Copy link

Seems to be quite low risk and fixes an ugly regression, so I think this is worth the backporting.

…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
@tstellar tstellar force-pushed the alanzhao1-backport-63008 branch from 7afe361 to 6be0687 Compare June 1, 2023 16:53
@tstellar
Copy link
Contributor

tstellar commented Jun 1, 2023

Can someone rebase this pull request?

I was able to do it.

@tstellar tstellar merged commit 185b81e into release/16.x Jun 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Clang assertion failure in paren init in new expression
4 participants