[fpc-pascal] "Double" specialization of generic class
xrfang at gmail.com
Tue Apr 15 08:45:45 CEST 2014
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.
2014-04-15 13:34 GMT+08:00 Sven Barth <pascaldragon at googlemail.com>:
> On 15.04.2014 03:51, Xiangrong Fang wrote:
>> I got strange ppcx64 error: -139, which I found is caused by this:
>> TNodeStack = specialize TVector<TNodeHash>;
>> where TNodeHash itself is a specialization:
>> 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?
> fpc-pascal maillist - fpc-pascal at lists.freepascal.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the fpc-pascal