[fpc-pascal] "Double" specialization of generic class
Xiangrong Fang
xrfang at gmail.com
Tue Apr 15 08:45:45 CEST 2014
Hi Sven,
I am using fpc 2.6.2. I am very sorry that I don't have time to compile
and install 2.7.1 at this time.
It's good to know that it works, at least in 2.7.1. I will report the
problem again while I start using 2.7.1 or when it is released as 2.8 :-)
For now, another suggestion regarding this error is the error message it
gave out, which is not understandable (error -139), I only find out the
cause of this by comparing my source code in git.
I hope this is also improved in 2.7 or later.
Thanks!
Shannon
2014-04-15 13:34 GMT+08:00 Sven Barth <pascaldragon at googlemail.com>:
> On 15.04.2014 03:51, Xiangrong Fang wrote:
>
>> Hi,
>>
>> I got strange ppcx64 error: -139, which I found is caused by this:
>>
>> type
>> TNodeStack = specialize TVector<TNodeHash>;
>>
>> where TNodeHash itself is a specialization:
>>
>> type
>> PNode = ^TNode; //TNode is a plain record
>> TNodeHash = specialize TTreap<Integer, PNode>;
>>
>> Is it true that specialization of a generic class using another
>> specialized generic class is not allowed?
>>
>
> No, that should work. Maybe some bug. Is there any error message? Could
> you present the full compiler output, please? You are using 2.7.1, right?
>
> Regards,
> Sven
>
> _______________________________________________
> fpc-pascal maillist - fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20140415/62bbb72b/attachment.html>
More information about the fpc-pascal
mailing list