Refering to non-constexpr variables in a constant expression is (apparently) just fine, and only problematic once we load a value.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
This is wrong if the (constant) initializer is for a legitimate non-constexpr variable declaration. We do a load in visitDecl().
Is CheckConstexpr descriptive enough? Would something like CheckLoadIsValid be better?