This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] c++/78774 - [6/7 Regression] ICE in constexpr string literals and templates
- From: Jason Merrill <jason at redhat dot com>
- To: Martin Sebor <msebor at gmail dot com>, Gcc Patch List <gcc-patches at gcc dot gnu dot org>
- Date: Mon, 12 Dec 2016 22:53:31 -0500
- Subject: Re: [PATCH] c++/78774 - [6/7 Regression] ICE in constexpr string literals and templates
- Authentication-results: sourceware.org; auth=none
- References: <9cdcd33a-b903-5534-0130-0e0d44b2bf7b@gmail.com>
On 12/12/2016 11:51 AM, Martin Sebor wrote:
The attached patch removes the unsafe assumption behind the ICE.
Is this okay for both trunk and GCC 6?
+ && TREE_CODE (innertype) == REFERENCE_TYPE
+ && TREE_CODE (TREE_TYPE (innertype)) == FUNCTION_TYPE
+ && TREE_CODE (innertype) == REFERENCE_TYPE
Let's also remove this redundant REFERENCE_TYPE check. OK with that change.
Jason