This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: C++ patch for typedef destructors
- To: Bo Thorsen <bo at suse dot de>
- Subject: Re: C++ patch for typedef destructors
- From: Jason Merrill <jason at redhat dot com>
- Date: 31 Jan 2001 14:30:34 +0000
- Cc: Richard Sandiford <rsandifo at cygnus dot com>, gcc-patches at gcc dot gnu dot org
- References: <Pine.LNX.4.21.0101310824180.20949-100000@Macintyre.suse.de>
>>>>> "Bo" == Bo Thorsen <bo@suse.de> writes:
> On 30 Jan 2001, Jason Merrill wrote:
>> Actually, this isn't quite ready to go in. Consider the following testcase:
>>
>> struct A {
>> static int U;
>> };
>>
>> typedef A U;
>>
>> int main ()
>> {
>> U::U = 42;
>> }
>>
>> This should work. Your patch should only apply to lookup after ::~.
>> Also, you need to use same_type_p to compare types.
> The testcase is wrong. You need to implement the static member outside the
> class definition.
Oops. Yes, of course.
> Whether or not this actually does anything about what it's testing, I
> can't say.
It doesn't.
Jason