Bug 6368 – Too many error messages for a missing );
Status
RESOLVED
Resolution
WORKSFORME
Severity
minor
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2011-07-23T05:31:00Z
Last change time
2012-12-28T17:07:11Z
Keywords
diagnostic
Assigned to
nobody
Creator
bearophile_hugs
Comments
Comment #0 by bearophile_hugs — 2011-07-23T05:31:17Z
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'
Comment #1 by andrej.mitrovich — 2012-10-20T18:16:44Z
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.