[Issue 12196] New: Bad error message for multiple declarations
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Feb 18 13:27:13 PST 2014
https://d.puremagic.com/issues/show_bug.cgi?id=12196
Summary: Bad error message for multiple declarations
Product: D
Version: D2
Platform: x86
OS/Version: Windows
Status: NEW
Keywords: diagnostic
Severity: minor
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: bearophile_hugs at eml.cc
--- Comment #0 from bearophile_hugs at eml.cc 2014-02-18 13:27:09 PST ---
void main() {
enum N = 10;
int a[N], b[N];
}
DMD 2.065rc1 gives:
test.d(3,19): Error: multiple declarations must have the same type, not int[N]
and int[N]
I suggest to generate a more truthful error message.
--
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list