October 07, 2011 [Issue 6786] New: Bad error message in a wrong usage of ^^ pow operator | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=6786 Summary: Bad error message in a wrong usage of ^^ pow operator Product: D Version: D2 Platform: Other 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-10-07 15:45:52 PDT --- This is an example of wrong D2 code that produces a correct error message: void foo(int x) { enum int x2 = x; } void main() {} DMD 2.056head gives: test.d(2): Error: variable x cannot be read at compile time This is similar wrong code: void foo(int x) { enum int x2 = x ^^ 2; } void main() {} But here DMD 2.056head gives a less good error message: test.d(2): Error: variable x is used before initialization -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
October 21, 2012 [Issue 6786] Bad error message in a wrong usage of ^^ pow operator | ||||
---|---|---|---|---|
| ||||
Posted in reply to bearophile_hugs@eml.cc | http://d.puremagic.com/issues/show_bug.cgi?id=6786 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:20:19 PDT --- The errors are now the same as the first error. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation