You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
P3144R2 made it ill-formed to delete a pointer to an incomplete class
type, and asserted that incomplete class types were the only incomplete
types that were possible to pass to the delete operator. This assertion
was wrong, and PR 99278 already updated the check to exclude incomplete
enum types, but that is still wrong: pointers to arrays of unknown
length are another instance of incomplete types that are possible to
delete and were not included in PR3144R2's ban. Additionally, the
diagnostic still claimed that the problem was with deleting pointers to
incomplete types, rather than to incomplete class types.
This PR ensures that when we implement the check for incomplete class
type, we only check for incomplete class type, and adjusts the
diagnostics to say 'incomplete struct' or 'incomplete union' to be
accurate without being overly verbose.
0 commit comments