www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - dmd segfaults on nested template instantiation (eg A!(A!(int)) )

I just filed a bug report (
http://d.puremagic.com/issues/show_bug.cgi?id=11067)

Is there a workaround that keeps same syntax for user code?
Use case: i'm generating those from swig(+modifications to map C++
templates to D templates) so I can't factor the template bodies for
different template instantiations into a single definition.

----

A!(A!(int)) detections;
struct A(T) if(is(T==int)) {}
struct A(T) if(is(T==A!(int))) {}

----
Sep 18 2013