Unverified Commit b8e06933 authored by Shafik Yaghmour's avatar Shafik Yaghmour Committed by GitHub
Browse files

[Clang] Ensure zero-init is not overridden when initializing a base class in a...

[Clang] Ensure zero-init is not overridden when initializing a base class in a constant expression context (#70150)

During constant evaluation when value-initializing a class if the base
class was default-initialized it would undue the previously
zero-initialized class members. This fixes the way we handle default
initialization to avoid initializing over an already initialized member
to an indeterminate value.

Fixes: https://github.com/llvm/llvm-project/issues/69890
parent c60bd0e5
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment