[Issue 1078] New: Frontend uses of 'auto' where 'scope' should be used

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Mar 22 12:47:26 PDT 2007


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

           Summary: Frontend uses of 'auto' where 'scope' should be used
           Product: D
           Version: 1.009
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: diagnostic, patch
          Severity: minor
          Priority: P3
         Component: DMD
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: deewiant at gmail.com


Instances in the frontend where error messages say "auto" when they should say
"scope":

declaration.c, lines 755 and 761. Code showcase:

scope class Foo {}
Foo f;

expression.c, line 3175. Code showcase:

void main() {
        scope f = new Object;
        return f;
}

func.c, line 135. Code showcase:

scope void main() {}

mtype.c, line 2680. Code showcase:

scope class Foo {}
Foo foo();


-- 



More information about the Digitalmars-d-bugs mailing list