www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 2178] New: 3 errors without line number: typeof

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2178

           Summary: 3 errors without line number: typeof
           Product: D
           Version: 1.031
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Keywords: diagnostic
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: clugdbug yahoo.com.au


/*
linenumberbugs.d(179): Error: undefined identifier F
Error: cannot resolve .property for typeof(F).x
linenumberbugs.d(179): Error: undefined identifier F
linenumberbugs.d(179): Error: cannot resolve .property for typeof(F).x
*/
alias typeof(F).x b;

----------------------------

/*
Error: x is not a type
linenumberbugs.d(192): Error: x is not a type
*/
class F { int x; }
alias typeof(F).x b;

--------------------
/*
linenumberbugs.d(196): Error: this is not in a struct or class scope
linenumberbugs.d(196): Error: 'this' is only allowed in non-static member
functi
ons, not linenumberbugs
Error: this for x needs to be type F not type int
*/

class F { int x; }
alias typeof(typeof(F).x) b;


-- 
Jun 26 2008
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2178


clugdbug yahoo.com.au changed:

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




------- Comment #1 from clugdbug yahoo.com.au  2008-07-09 07:15 -------
Fixed DMD1.032


-- 
Jul 09 2008
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2178





------- Comment #2 from bugzilla digitalmars.com  2008-07-09 22:42 -------
Fixed dmd 1.032 and 2.016


-- 
Jul 09 2008