[Issue 2544] implicit const casting rules allow violations of const-safety

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

Andrei Alexandrescu and...@erdani.com changed:

   What|Removed |Added

Version|2.022   |D2

--


[Issue 2544] implicit const casting rules allow violations of const-safety

2011-06-15 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=2544


yebblies yebbl...@gmail.com changed:

   What|Removed |Added

 Status|REOPENED|RESOLVED
 CC||yebbl...@gmail.com
 Resolution||DUPLICATE


--- Comment #13 from yebblies yebbl...@gmail.com 2011-06-15 20:22:49 PDT ---
As far as I can tell, all of these cases are fixed by my patch to 4251.
It uses references as the highest indirection instead of arrays, but exposes
the same bug.

*** This issue has been marked as a duplicate of issue 4251 ***

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


[Issue 2544] implicit const casting rules allow violations of const-safety

2010-11-18 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=2544



--- Comment #12 from Sobirari Muhomori dfj1es...@sneakemail.com 2010-11-18 
12:15:53 PST ---
Seems to be a regression, since according to bug 2056, this code didn't compile
in dmd 2.013.

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


[Issue 2544] implicit const casting rules allow violations of const-safety

2010-07-20 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=2544


Leandro Lucarella llu...@gmail.com changed:

   What|Removed |Added

Version|D1  D2 |2.022


--- Comment #11 from Leandro Lucarella llu...@gmail.com 2010-07-20 19:35:41 
PDT ---
I'm sorry about the last version change, I accidentally changed it thinking I
was editing bug 3463 instead (I hate bugzilla for automatically moving to the
next bug report when committing changes).

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


[Issue 2544] implicit const casting rules allow violations of const-safety

2010-04-14 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=2544



--- Comment #9 from Sobirari Muhomori dfj1es...@sneakemail.com 2010-04-14 
10:36:19 PDT ---
(In reply to comment #5)
 Although it is technically a subset of bug 2095
To be precise, it's theoretically a subset of 2095, but technically they are
different :)

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


[Issue 2544] implicit const casting rules allow violations of const-safety

2010-04-14 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=2544


Stewart Gordon s...@iname.com changed:

   What|Removed |Added

 OS/Version|Linux   |All


--- Comment #10 from Stewart Gordon s...@iname.com 2010-04-14 17:46:53 PDT ---
Since when has this issue been Linux-specific?

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


[Issue 2544] implicit const casting rules allow violations of const-safety

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



--- Comment #8 from Steven Schveighoffer schvei...@yahoo.com 2010-03-16 
20:19:39 PDT ---
It appears that the offending code still compiles in dmd 2.041.  I can't
remember why I thought the given changeset should fix the problem, maybe it was
fixed and then regressed.  In any case, it's still broken.

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


[Issue 2544] implicit const casting rules allow violations of const-safety

2009-12-17 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=2544


Stewart Gordon s...@iname.com changed:

   What|Removed |Added

 CC||bugzi...@digitalmars.com


--- Comment #4 from Stewart Gordon s...@iname.com 2009-12-17 03:34:15 PST ---
*** Issue 3621 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 2544] implicit const casting rules allow violations of const-safety

2009-12-17 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=2544



--- Comment #6 from Stewart Gordon s...@iname.com 2009-12-17 05:19:13 PST ---
(In reply to comment #5)
 I'm going to reopen this.  Although it is technically a subset of bug 2095, it
 is not a duplicate.  It is possible to fix this bug without fixing 2095.
 
 It appears that a fix was inserted for 3621, repeated here for consistency:
 
 http://www.dsource.org/projects/dmd/changeset/299
 
 When the compiler is released with this fix, then this bug can be closed.

Does this change cover all cases discussed in the thread linked to in comment
2?

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


[Issue 2544] implicit const casting rules allow violations of const-safety

2009-12-17 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=2544



--- Comment #7 from Steven Schveighoffer schvei...@yahoo.com 2009-12-17 
05:31:50 PST ---
(In reply to comment #6)
 
 Does this change cover all cases discussed in the thread linked to in comment
 2?

From looking at the code changes, it does not fix casts from a derived class
array to a base class array.  However, that issue is captured in bug 2095.  I
don't think this means 2095 is not an important bug to fix, but it might be
that this bug is *really* simple to fix, and 2095 is not (Walter would know
better).  I'd rather have this part of it fixed than neither part fixed.

In any case, the example in comment 1 and the original description should
theoretically be fixed by the change, so we can at least close *this* bug.  I
agree that something needs to be done about casting a derived class array to a
base class array, and it seems like the solution proposed in the thread would
work.

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


[Issue 2544] implicit const casting rules allow violations of const-safety

2009-02-18 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=2544


ma...@pochta.ru changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||DUPLICATE




--- Comment #3 from ma...@pochta.ru  2009-02-18 04:40 ---


*** This bug has been marked as a duplicate of 2095 ***


-- 



[Issue 2544] implicit const casting rules allow violations of const-safety

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


s...@iname.com changed:

   What|Removed |Added

 CC||s...@iname.com




--- Comment #2 from s...@iname.com  2009-01-02 06:56 ---
I've thought quite a bit about this and come up with what seems to be a
solution, which also deals with another problem that's been around for years. 
I've posted it on the newsgroup, as it's rather long for here.

Possible D2 solution to the upcasting array problem, and a related problem
with const and nested arrays
http://www.digitalmars.com/webnews/newsgroups.php?art_group=digitalmars.Darticle_id=81566


--