Unverified Commit 26181544 authored by Nick Desaulniers's avatar Nick Desaulniers Committed by GitHub
Browse files

[clang][VarDecl] Reset un-evaluated constant for all C++ modes (#65818)

After commit 610ec954 ("[clang] allow const structs/unions/arrays to
be constant expressions for C"), attempts to evaluate
structs/unions/arrays as constants are also performed for C++98 and
C++03.

An assertion was getting tripped up since the potentially-partially
evaluated value was not being reset for those 2 language modes.  Make
sure to reset it now for all C++ modes.

Fixes: #65784
parent 46f3ea59
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