This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/84082] [7/8 Regression] ICE with broken template function definition


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?

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]