Bug 1158 – Missing line number: invalid mixin outside function scope

Status
RESOLVED
Resolution
FIXED
Severity
minor
Priority
P3
Component
dmd
Product
D
Version
D1 (retired)
Platform
x86
OS
All
Creation time
2007-04-17T12:41:00Z
Last change time
2014-02-16T15:25:32Z
Keywords
diagnostic
Assigned to
bugzilla
Creator
matti.niemenmaa+dbugzilla

Comments

Comment #0 by matti.niemenmaa+dbugzilla — 2007-04-17T12:41:24Z
mixin(2); The above line generates the error "attribute argument to mixin must be a string, not (2)", but includes module and line number information only if placed within function scope.
Comment #1 by matti.niemenmaa+dbugzilla — 2007-04-17T12:50:57Z
Also happens with syntactically valid mixins resulting in invalid statements: mixin("2");
Comment #2 by thomas-dloop — 2007-04-23T12:55:27Z
Comment #3 by clugdbug — 2008-06-19T06:58:00Z
*** Bug 2153 has been marked as a duplicate of this bug. ***
Comment #4 by clugdbug — 2008-07-09T07:13:37Z
Fixed DMD1.032
Comment #5 by bugzilla — 2008-07-09T22:38:12Z
Fixed dmd 1.032 and 2.016