Thread overview | |||||||||
---|---|---|---|---|---|---|---|---|---|
|
July 16, 2011 [Issue 6336] New: Can't return ref T where T has const/immutable members | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=6336 Summary: Can't return ref T where T has const/immutable members Product: D Version: D2 Platform: Other OS/Version: Windows Status: NEW Severity: major Priority: P2 Component: DMD AssignedTo: nobody@puremagic.com ReportedBy: verylonglogin.reg@gmail.com --- Comment #0 from Denis <verylonglogin.reg@gmail.com> 2011-07-16 08:19:56 PDT --- As a result "front" and "back" template functions from std.array don't compile, isInputRange!(S[]) is false and none of range functions can work with an array of structs with a const/immutable member. immutable struct IS { int t; } struct S { immutable int t; } void f(ref S) { } //compiles ref IS f() { return IS(); } //compiles too ref S f() { return S(); } //doesn't compile void main() { static assert( isInputRange!(S[]) ); //as a result assertion failure } -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
January 24, 2012 [Issue 6336] Can't return ref T where T has const/immutable members | ||||
---|---|---|---|---|
| ||||
Posted in reply to Denis | http://d.puremagic.com/issues/show_bug.cgi?id=6336 Kenji Hara <k.hara.pg@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |tarossi@gmail.com --- Comment #1 from Kenji Hara <k.hara.pg@gmail.com> 2012-01-24 05:23:22 PST --- *** Issue 5690 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: ------- |
January 24, 2012 [Issue 6336] Can't return ref T where T has const/immutable members | ||||
---|---|---|---|---|
| ||||
Posted in reply to Denis | http://d.puremagic.com/issues/show_bug.cgi?id=6336 Kenji Hara <k.hara.pg@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |patch Platform|Other |All OS/Version|Windows |All --- Comment #2 from Kenji Hara <k.hara.pg@gmail.com> 2012-01-24 05:30:54 PST --- My pull request contains a fix for this issue. https://github.com/D-Programming-Language/dmd/pull/166 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
April 11, 2012 [Issue 6336] Can't return ref T where T has const/immutable members | ||||
---|---|---|---|---|
| ||||
Posted in reply to Denis | http://d.puremagic.com/issues/show_bug.cgi?id=6336 Kenji Hara <k.hara.pg@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |bearophile_hugs@eml.cc --- Comment #3 from Kenji Hara <k.hara.pg@gmail.com> 2012-04-11 06:33:19 PDT --- *** Issue 7889 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: ------- |
June 26, 2012 [Issue 6336] Can't return ref T where T has const/immutable members | ||||
---|---|---|---|---|
| ||||
Posted in reply to Denis | http://d.puremagic.com/issues/show_bug.cgi?id=6336 Jonathan M Davis <jmdavisProg@gmx.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |rb@d-coding.com --- Comment #4 from Jonathan M Davis <jmdavisProg@gmx.com> 2012-06-25 17:53:27 PDT --- *** Issue 8297 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: ------- |
October 07, 2012 [Issue 6336] Can't return ref T where T has const/immutable members | ||||
---|---|---|---|---|
| ||||
Posted in reply to Denis | http://d.puremagic.com/issues/show_bug.cgi?id=6336 --- Comment #5 from github-bugzilla@puremagic.com 2012-10-07 09:15:00 PDT --- Commit pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/b10781e6abe9472a6f327601daa870b180660128 fix Issue 6336 - Can't return ref T where T has const/immutable members Remove fail7695.d, because it was incorrectly failed to compile by bug 6336. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
October 07, 2012 [Issue 6336] Can't return ref T where T has const/immutable members | ||||
---|---|---|---|---|
| ||||
Posted in reply to Denis | http://d.puremagic.com/issues/show_bug.cgi?id=6336 yebblies <yebblies@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |yebblies@gmail.com Resolution| |FIXED --- Comment #6 from yebblies <yebblies@gmail.com> 2012-10-08 05:49:15 EST --- https://github.com/D-Programming-Language/dmd/commit/5b42e51481d186ee5e3c2684a237a05cea33a0cf -- 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