This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/84082] [7/8 Regression] ICE with broken template function definition
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 29 Jan 2018 09:44:17 +0000
- Subject: [Bug c++/84082] [7/8 Regression] ICE with broken template function definition
- Auto-submitted: auto-generated
- References: <bug-84082-4@http.gcc.gnu.org/bugzilla/>
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?