A list-initialized variable may have an initializer of incomplete type.
We didn't ensure the sub-element type was complete before we
interrogated certain properties of the type.
Details
Details
- Reviewers
rsmith
Diff Detail
Diff Detail
Event Timeline
lib/Sema/SemaExprCXX.cpp | ||
---|---|---|
5113–5115 | I think this is the wrong place for this: the code creating the rvalue should be checking that its type is complete. |
I think this is the wrong place for this: the code creating the rvalue should be checking that its type is complete.