Thread overview
[Issue 6368] New: Too many error messages for a missing );
Oct 21, 2012
Andrej Mitrovic
Dec 29, 2012
Walter Bright
July 23, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6368

           Summary: Too many error messages for a missing );
           Product: D
           Version: unspecified
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Keywords: diagnostic
          Severity: minor
          Priority: P2
         Component: DMD
        AssignedTo: nobody@puremagic.com
        ReportedBy: bearophile_hugs@eml.cc


--- Comment #0 from bearophile_hugs@eml.cc 2011-07-23 05:31:17 PDT ---
A wrong program that lacks a closing );


void main() {
    foo(
}


In my opinion it generates many too many error messages, DMD 2.054:

test.d(3): expression expected, not '}'
test.d(4): found 'EOF' when expecting ','
test.d(4): expression expected, not 'EOF'
test.d(4): found 'EOF' when expecting ','
test.d(4): expression expected, not 'EOF'
test.d(4): found 'EOF' when expecting ','
test.d(4): expression expected, not 'EOF'
test.d(4): found 'EOF' when expecting ','
test.d(4): expression expected, not 'EOF'
test.d(4): found 'EOF' when expecting ','
test.d(4): expression expected, not 'EOF'
test.d(4): found 'EOF' when expecting ','
test.d(4): expression expected, not 'EOF'
test.d(4): found 'EOF' when expecting ','
test.d(4): expression expected, not 'EOF'
test.d(4): found 'EOF' when expecting ','
test.d(4): expression expected, not 'EOF'
test.d(4): found 'EOF' when expecting ','
test.d(4): expression expected, not 'EOF'
test.d(4): found 'EOF' when expecting ','
test.d(4): expression expected, not 'EOF'

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
October 21, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=6368


Andrej Mitrovic <andrej.mitrovich@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |andrej.mitrovich@gmail.com
         Resolution|                            |FIXED


--- Comment #1 from Andrej Mitrovic <andrej.mitrovich@gmail.com> 2012-10-20 18:16:44 PDT ---
This is now:

test.d(3): Error: expression expected, not '}'
test.d(4): Error: found 'EOF' when expecting ','
test.d(4): Error: found 'EOF' when expecting ')'
test.d(4): Error: found 'EOF' when expecting ';' following statement
test.d(4): Error: found 'EOF' when expecting '}' following compound statement

It seems like the minimal amount of error messages.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
December 29, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=6368


Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla@digitalmars.com
            Version|unspecified                 |D2
         Resolution|FIXED                       |WORKSFORME


-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------