[Issue 1266] New: Cannot forward reference the typeof of the base type of a pointer whose base type is defined with typeof
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Jun 15 09:03:56 PDT 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1266
Summary: Cannot forward reference the typeof of the base type of
a pointer whose base type is defined with typeof
Product: D
Version: 1.014
Platform: PC
OS/Version: Windows
Status: NEW
Keywords: diagnostic, rejects-valid
Severity: normal
Priority: P3
Component: DMD
AssignedTo: bugzilla at digitalmars.com
ReportedBy: deewiant at gmail.com
OtherBugsDependingO 340
nThis:
One of those hard to summarize legibly, yet relatively simple, bugs:
void f(typeof(*y) z) {}
typeof(x)* y;
int x;
Replace typeof(x) or typeof(*y) with int or move f after y and the code
compiles. As it is, it emits "Error: error: forward reference of typeof(x)"
without a line number for the error, in both DMD 1.014 and 1.015.
--
More information about the Digitalmars-d-bugs
mailing list