This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch c++]: Fix PR/64100 'A static assert using the the current class in a noexcept test leads to a segfault'
- From: Kai Tietz <ktietz70 at googlemail dot com>
- To: Marek Polacek <polacek at redhat dot com>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>, Jason Merrill <jason at redhat dot com>
- Date: Thu, 4 Dec 2014 16:57:18 +0100
- Subject: Re: [patch c++]: Fix PR/64100 'A static assert using the the current class in a noexcept test leads to a segfault'
- Authentication-results: sourceware.org; auth=none
- References: <CAEwic4bNBQ3r4E-7MetUPykZ7sL1TMEZ3sqUfTOBMJvtyS8hWg at mail dot gmail dot com> <20141204154644 dot GE16332 at redhat dot com>
2014-12-04 16:46 GMT+01:00 Marek Polacek <polacek@redhat.com>:
> On Thu, Dec 04, 2014 at 04:00:34PM +0100, Kai Tietz wrote:
>> Hi,
>>
>> The issue is that lookup_destructor calls
>> adjust_result_of_qualified_name_lookup
>> with an NULL_TREE decl (returned by lookup_member). So error-message
>> is missing.
>>
>> As already discussed in bug-tracker:
>>
>> ChangeLog
>>
>> 2014-12-04 Kai Tietz <ktietz@redhat.com>
>>
>> PR c++/64100
>> * typeck.c (lookup_destructor): Handle incomplete
>> type.
>>
>> Tested on x86_64-unknown-linux-gnu.
>>
>> Ok for apply?
>
> Testcase?
>
> Marek
Well, I spared that as this is an invalid code bug with a lot of
side-errors, which might change over time.
If wanted I can add testcase to g++/template/ collection
Kai