Bug 1291 – .stringof for a class type returned from a template doesn't work

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D1 (retired)
Platform
Other
OS
Linux
Creation time
2007-06-24T14:55:00Z
Last change time
2014-02-16T15:21:22Z
Assigned to
bugzilla
Creator
onlystupidspamhere

Comments

Comment #0 by onlystupidspamhere — 2007-06-24T14:55:15Z
Code: template t() { alias Object t; } pragma(msg, t!().stringof); Compiler output: bug.d(2): Error: undefined identifier class Object.stringof bug.d(2): pragma msg string expected for message, not 'class Object.stringof' ---- t!() should return type 'Object' which is a valid type and for which .stringof exists. For example this works: alias Object t; pragma(msg, t.stringof);
Comment #1 by bugzilla — 2007-07-01T14:09:32Z
Fixed DMD 1.018 and DMD 2.002