www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - DMD segfault

The following makes dmd segfault:

# template A(alias T)
# {
#   typeof(T) foo = 3*T;
# }
#
# void main()
# {
#   mixin A!(int) a;
#   a.foo;
# }

Yes, the code is wrong, there should be a variable parameter, not an int.

Nick
Aug 06 2004