Bug 62 – Error message: 'TOK41 has no effect'.

Status
RESOLVED
Resolution
FIXED
Severity
minor
Priority
P2
Component
dmd
Product
D
Version
D1 (retired)
Platform
x86
OS
Windows
Creation time
2006-03-22T03:13:00Z
Last change time
2014-02-15T02:09:27Z
Assigned to
bugzilla
Creator
clugdbug

Comments

Comment #0 by clugdbug — 2006-03-22T03:13:37Z
Should not compile, but error message should not refer to TOK41. Unimportant. ======== varbug2.d(10): mixin mixin peacock!(3); peacock is not a template varbug2.d(11): mixin 'mixin peacock!(3); ' is not a variable varbug2.d(11): TOK41 has no effect in expression (mixin peacock!(3); ) varbug2.d(20): template instance varbug2.VarArgs!(Dog).VarArgs!(int) error insta ntiating ======== template Rubbish(A) { const int Rubbish = 3; } template VarArgs(alias peacock) { template VarArgs(A) { void VarArgs(A a) { mixin peacock!(Rubbish!(A)) zz; zz; } } } void Dog() {} void main() { VarArgs!(Dog)(3); }
Comment #1 by clugdbug — 2006-04-04T06:41:37Z
Fixed in 0.151.