www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 6368] New: Too many error messages for a missing );

reply d-bugmail puremagic.com writes:
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



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: -------
Jul 23 2011
next sibling parent d-bugmail puremagic.com writes:
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



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: -------
Oct 20 2012
prev sibling parent d-bugmail puremagic.com writes:
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: -------
Dec 28 2012