This is the mail archive of the gcc-patches@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]

Re: [PATCH] c++/78774 - [6/7 Regression] ICE in constexpr string literals and templates


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



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