[Issue 1738] Error on struct without line number

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Jan 2 08:23:51 PST 2008


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


technocrat7 at gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED




------- Comment #3 from technocrat7 at gmail.com  2008-01-02 10:23 -------
DMD 1.025 seems to have fixed the missing line number bug. My test case now
yields a filename and line number:

<quote>
test1.d(14): Error: 'b' is not a member of 'MyStruct'
</quote>

It also may have fixed Dan's code since this snippet now compiles, too:
<code>
struct Value {
  union {
   bool b;
   int i;
  }
}

static const Value
   FALSE = { b:false};
</code>

(But I think that snippet seemed to compile with DMD 1.024, too.)

Dan, if you continue to have related problems, you should probably post a new
bug report with a new description, test case, etc., since the description and
keyword of this bug report doesn't apply anymore since the line number is
provided for invalid code.


-- 



More information about the Digitalmars-d-bugs mailing list