[Swift-devel] [Bug 216] New: poor compile error when semicolon missing at end of structure definition

bugzilla-daemon at mcs.anl.gov bugzilla-daemon at mcs.anl.gov
Mon Jul 13 02:20:43 CDT 2009


https://bugzilla.mcs.anl.gov/swift/show_bug.cgi?id=216

           Summary: poor compile error when semicolon missing at end of
                    structure definition
           Product: Swift
           Version: unspecified
          Platform: PC
        OS/Version: Mac OS
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Documentation
        AssignedTo: benc at hawaga.org.uk
        ReportedBy: benc at hawaga.org.uk


In the below code, the error message given is unenlightening. It should refer
to something closer to the actual error.

Perhaps the parser should fail as soon as it sees a token after the } that is
not SEMI

Removing files from previous runs
Running test 07554-ext-mapper-struct at Mon Jul 13 09:18:39 CEST 2009
Could not start execution.
    Compile error in procedure invocation at line 16: Type messagefile is not
defined.


type messagefile;

type struct {
messagefile eerste;
messagefile twede;
} // MISSING SEMICOLON HERE

(messagefile t) write(string s) {
    app {
        echo s stdout=@filename(t);
    }
}

messagefile outfiles <ext; exec="./07554-ext-mapper-struct.sh">;

outfiles.eerste = write("1st");
outfiles.twede = write("2nd");

-- 
Configure bugmail: https://bugzilla.mcs.anl.gov/swift/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
You are watching the reporter.



More information about the Swift-devel mailing list