[Bug 159] forward reference with invalid struct

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Jun 2 07:02:46 PDT 2006


http://d.puremagic.com/bugzilla/show_bug.cgi?id=159


smjg at iname.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|INVALID                     |




------- Comment #2 from smjg at iname.com  2006-06-02 09:02 -------
Since when has "forward reference" meant this?  In my vocabulary, a forward
reference is when you refer to something before it's declared.  Which isn't
happening here.  A forward _declaration_, OTOH, is when you declare something
and then define it later.  This would be a forward declaration except that in
this example, S is never defined.

As such, what we have isn't a forward anything.  So of course it's a badly
written error message.

A better error would be:

mod.d(7): unable to resolve declaration of type S - size is unknown


-- 




More information about the Digitalmars-d-bugs mailing list