Bug 775 – array literals can't be used as template arguments

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P3
Component
dmd
Product
D
Version
D1 (retired)
Platform
All
OS
All
Creation time
2006-12-30T07:50:00Z
Last change time
2014-02-15T13:19:54Z
Assigned to
bugzilla
Creator
thomas-dloop

Comments

Comment #0 by thomas-dloop — 2006-12-30T07:50:45Z
Error: expression ["abc2","def"] is not a valid template value argument: # # template A(T ...) { } # mixin A!(["abc2", "def"]); # mixin B!(["abc2","def"]) does not match any template declaration: # # template B(alias T) {} # mixin B!(["abc2", "def"]); #
Comment #1 by bugzilla — 2006-12-30T19:30:45Z
The second mixin, B, is invalid because an array literal is not a symbol nor is it a type, hence it won't match an alias parameter.
Comment #2 by thomas-dloop — 2006-12-30T20:08:59Z
fixed Deskzilla's standard priority
Comment #3 by bugzilla — 2007-01-03T22:55:08Z
Fixed DMD 1.00
Comment #4 by thomas-dloop — 2007-02-15T03:42:18Z