[Issue 1266] 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:11:26 PDT 2007


http://d.puremagic.com/issues/show_bug.cgi?id=1266





------- Comment #1 from deewiant at gmail.com  2007-06-15 11:11 -------
I was going to file this as a separate Bug, but it seems it's just a wonky
error message for essentially the same thing:

void f(typeof(*y) z) {}
typeof(&x) y;
int x;

The above code errors out with the senseless "Error: can only * a pointer, not
a 'typeof(&x)'", but at least it comes with a line number pointing at the
typeof(*y), unlike the original code which used typeof(x)*.


-- 



More information about the Digitalmars-d-bugs mailing list