www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - template instance is nested in both A and B

reply "simendsjo" <simendsjo gmail.com> writes:
Anyone have any idea what this means?

Error: template instance TupleWrapper!(i, i) TupleWrapper!(i, i) 
is nested in both S and D

I don't have a minimal testcase, but I can try to create one if 
it's difficult to see otherwise.
Mar 17 2013
parent "Maxim Fomin" <maxim maxim-fomin.ru> writes:
On Sunday, 17 March 2013 at 21:22:44 UTC, simendsjo wrote:
 Anyone have any idea what this means?

 Error: template instance TupleWrapper!(i, i) TupleWrapper!(i, 
 i) is nested in both S and D

 I don't have a minimal testcase, but I can try to create one if 
 it's difficult to see otherwise.
This means that template instance touches more than one context and since D implementation currently allows to have one single context pointer, the code is rejected. There is issue in bugzilla, and it is not fixed.
Mar 17 2013