[Issue 1730] Bogus error message calling a non-const struct method on a const struct reference

2015-06-09 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=1730

Andrei Alexandrescu  changed:

   What|Removed |Added

Version|2.008   |D2

--


[Issue 1730] Bogus error message calling a non-const struct method on a const struct reference

2013-01-20 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=1730


Andrej Mitrovic  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: ---


[Issue 1730] Bogus error message calling a non-const struct method on a const struct reference

2013-01-02 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=1730



--- Comment #11 from github-bugzi...@puremagic.com 2013-01-02 23:18:49 PST ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/80d12f303c6184c9423a08b6d984db469ec27927
Fix Issue 1730 - Error message on 'this' reference modifier mismatch when
calling methods is uninformative

https://github.com/D-Programming-Language/dmd/commit/99e93a62383a627497d7eafbee772b99329cb70f
Merge pull request #1407 from AndrejMitrovic/Fix1730

Issue 1730 - Error message on 'this' reference modifier mismatch is
uninformative

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---


[Issue 1730] Bogus error message calling a non-const struct method on a const struct reference

2012-12-27 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=1730



--- Comment #10 from Andrej Mitrovic  2012-12-27 
17:50:19 PST ---
*** Issue 6981 has been marked as a duplicate of this issue. ***

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---


[Issue 1730] Bogus error message calling a non-const struct method on a const struct reference

2012-12-27 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=1730



--- Comment #9 from Andrej Mitrovic  2012-12-27 
17:43:17 PST ---
*** Issue 6707 has been marked as a duplicate of this issue. ***

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---


[Issue 1730] Bogus error message calling a non-const struct method on a const struct reference

2012-12-25 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=1730


Andrej Mitrovic  changed:

   What|Removed |Added

   Keywords||pull
 AssignedTo|nob...@puremagic.com|andrej.mitrov...@gmail.com


--- Comment #8 from Andrej Mitrovic  2012-12-25 
06:31:46 PST ---
https://github.com/D-Programming-Language/dmd/pull/1407

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---


[Issue 1730] Bogus error message calling a non-const struct method on a const struct reference

2012-12-23 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=1730


Andrej Mitrovic  changed:

   What|Removed |Added

 CC||andrej.mitrov...@gmail.com


--- Comment #7 from Andrej Mitrovic  2012-12-23 
13:47:23 PST ---
There's a ton of duplicate reports on this diagnostic. We better come up with a
better error message than what we have now because there's a lot of complaints.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---


[Issue 1730] Bogus error message calling a non-const struct method on a const struct reference

2012-12-23 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=1730


Andrej Mitrovic  changed:

   What|Removed |Added

 CC||mrmoc...@gmx.de


--- Comment #6 from Andrej Mitrovic  2012-12-23 
13:45:34 PST ---
*** Issue 4497 has been marked as a duplicate of this issue. ***

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---


[Issue 1730] Bogus error message calling a non-const struct method on a const struct reference

2012-12-23 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=1730


Andrej Mitrovic  changed:

   What|Removed |Added

 CC||jason.james.ho...@gmail.com


--- Comment #5 from Andrej Mitrovic  2012-12-23 
13:45:29 PST ---
*** Issue 3642 has been marked as a duplicate of this issue. ***

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---


[Issue 1730] Bogus error message calling a non-const struct method on a const struct reference

2010-03-13 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=1730


Michal Spadlinski  changed:

   What|Removed |Added

 CC||gim...@gmail.com


--- Comment #4 from Michal Spadlinski  2010-03-13 07:25:52 
PST ---
I has similar problem with:

struct Foo {
bool boo() {
return false;
}

int foo () const {
assert (boo);
return 66;
}
}

this message is totally misleading

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---


[Issue 1730] Bogus error message calling a non-const struct method on a const struct reference

2009-11-20 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=1730



--- Comment #3 from Stewart Gordon  2009-11-20 11:10:48 PST ---
Probably part of the same bug:

--
class Class {
void fn1() const {
fn2();
}

void fn2() {}
}
--
const_call.d(3): Error: function const_call.Class.fn2 () is not callable using
argument types () const
--

This may make sense at the internal level, as trying to convert the 'this'
argument implicitly from const(Class) to Class.  But as a user error message,
it's confusing.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---