Bug 2178 – 3 errors without line number: typeof

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D1 (retired)
Platform
x86
OS
Windows
Creation time
2008-06-26T03:46:00Z
Last change time
2014-02-24T16:00:00Z
Keywords
diagnostic
Assigned to
bugzilla
Creator
clugdbug

Comments

Comment #0 by clugdbug — 2008-06-26T03:46:18Z
/* linenumberbugs.d(179): Error: undefined identifier F Error: cannot resolve .property for typeof(F).x linenumberbugs.d(179): Error: undefined identifier F linenumberbugs.d(179): Error: cannot resolve .property for typeof(F).x */ alias typeof(F).x b; ---------------------------- /* Error: x is not a type linenumberbugs.d(192): Error: x is not a type */ class F { int x; } alias typeof(F).x b; -------------------- /* linenumberbugs.d(196): Error: this is not in a struct or class scope linenumberbugs.d(196): Error: 'this' is only allowed in non-static member functi ons, not linenumberbugs Error: this for x needs to be type F not type int */ class F { int x; } alias typeof(typeof(F).x) b;
Comment #1 by clugdbug — 2008-07-09T07:15:30Z
Fixed DMD1.032
Comment #2 by bugzilla — 2008-07-09T22:42:03Z
Fixed dmd 1.032 and 2.016