August 06, 2004 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
| ||||
Copyright © 1999-2021 by the D Language Foundation
Permalink
Reply