Thread overview | ||||||
---|---|---|---|---|---|---|
|
June 19, 2013 [Issue 10415] New: Bad error message with const property of const class instance | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=10415 Summary: Bad error message with const property of const class instance Product: D Version: D2 Platform: x86 OS/Version: Windows Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nobody@puremagic.com ReportedBy: bearophile_hugs@eml.cc --- Comment #0 from bearophile_hugs@eml.cc 2013-06-19 10:23:02 PDT --- Title: Component: dmd Severity: Code number: Keywords: Outcome: Is done: no See also: class Foo { @property int bar() const { return 0; } @property void bar(int) {} } void main() { const x = new Foo; x.bar = 1; } DMD 2.063.2 gives a bad error message, that is wrong and doesn't explain the true nature of the problem: test.d(9): Error: not a property x.bar -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
June 19, 2013 [Issue 10415] Bad error message with const property of const class instance | ||||
---|---|---|---|---|
| ||||
Posted in reply to bearophile_hugs@eml.cc | http://d.puremagic.com/issues/show_bug.cgi?id=10415 Andrej Mitrovic <andrej.mitrovich@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |diagnostic, pull CC| |andrej.mitrovich@gmail.com Platform|x86 |All OS/Version|Windows |All --- Comment #1 from Andrej Mitrovic <andrej.mitrovich@gmail.com> 2013-06-19 10:41:28 PDT --- https://github.com/D-Programming-Language/dmd/pull/2227 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
June 20, 2013 [Issue 10415] Bad error message with const property of const class instance | ||||
---|---|---|---|---|
| ||||
Posted in reply to bearophile_hugs@eml.cc | http://d.puremagic.com/issues/show_bug.cgi?id=10415 --- Comment #2 from github-bugzilla@puremagic.com 2013-06-19 20:39:16 PDT --- Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/a4cd2d18d1b025cc2bb694614d0e85746375811e Fixes Issue 10415 - Bad diagnostic on writing to an r-value property return. https://github.com/D-Programming-Language/dmd/commit/97abb8a07361aca0b8ca0a9d0d3b71fdf40e0f61 Merge pull request #2227 from AndrejMitrovic/Fix10415 Issue 10415 - Bad diagnostic on writing to an r-value property return -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
June 20, 2013 [Issue 10415] Bad error message with const property of const class instance | ||||
---|---|---|---|---|
| ||||
Posted in reply to bearophile_hugs@eml.cc | http://d.puremagic.com/issues/show_bug.cgi?id=10415 Kenji Hara <k.hara.pg@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED -- 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