https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84082

--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
As that PR was a workaround for buggy code and the intent was to not reject
code that has been accepted before, perhaps we could only do the pedwarn rather
than error and clearing of TREE_TYPE (postfix_expression) if it is valid to
clear the type for it, and otherwise error and not clear the type?
Which expression types require always non-NULL TREE_TYPE, besides
{,REINTERPRET_,CONST_,STATIC_,DYNAMIC_}CAST_EXPR and IMPLICIT_CONV_EXPR?

Reply via email to