This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] c++/59759 - ICE in unify, using std::enable_if on classes
- From: Martin Sebor <msebor at gmail dot com>
- To: Jason Merrill <jason at redhat dot com>, Gcc Patch List <gcc-patches at gcc dot gnu dot org>, ktietz70 at googlemail dot com, Marek Polacek <polacek at redhat dot com>
- Date: Wed, 20 Jan 2016 09:47:00 -0700
- Subject: Re: [PATCH] c++/59759 - ICE in unify, using std::enable_if on classes
- Authentication-results: sourceware.org; auth=none
- References: <569E7BBF dot 8070300 at gmail dot com> <569F8DF5 dot 5080005 at redhat dot com>
On 01/20/2016 06:39 AM, Jason Merrill wrote:
On 01/19/2016 01:09 PM, Martin Sebor wrote:
Attached is the patch to avoid the ICE that Kai posted below
with the test case Marek asked for in his response. I didn't
see any further followup on the list.
Thanks, but the code is actually well-formed; I've now fixed the bug
properly.
You're right. I had reduced the test case some more (comment #15)
and inadvertently made it ill-formed in the process by replacing
'typename' with 'class' in the definition of A, while still
triggering the ICE. Your patch does the right thing with both.
Martin