This patch improves the diagnostic on uninitialized subobjects in constexpr variables by modifying the diagnostic message to display the subobject's name instead of its type.
Details
Details
Diff Detail
Diff Detail
Time | Test | |
---|---|---|
120 ms | x64 debian > Flang.Driver::code-gen-rv64.f90 Script:
--
: 'RUN: at line 5'; rm -f /var/lib/buildkite-agent/builds/llvm-project/build/tools/flang/test/Driver/Output/code-gen-rv64.f90.tmp.o
|
Event Timeline
clang/lib/AST/Interp/Interp.cpp | ||
---|---|---|
373 | If we are sure it can never be nullptr then we should assert(SubObjDecl) |
Comment Actions
"subobject named 'foo'" sounds a bit weird to me, I'd expect just "subobject 'foo'", but that's just a suggestion and I'll wait for a native spearker to chime in on this.
clang/lib/AST/Interp/Interp.cpp | ||
---|---|---|
373 | Should never be null here. |