digitalmars.D.bugs - [Issue 11242] New: [REG2.064beta] Fails to infer template argument with inout
- d-bugmail puremagic.com (38/38) Oct 13 2013 http://d.puremagic.com/issues/show_bug.cgi?id=11242
- d-bugmail puremagic.com (10/10) Oct 13 2013 http://d.puremagic.com/issues/show_bug.cgi?id=11242
- d-bugmail puremagic.com (11/11) Oct 14 2013 http://d.puremagic.com/issues/show_bug.cgi?id=11242
- d-bugmail puremagic.com (9/9) Oct 14 2013 http://d.puremagic.com/issues/show_bug.cgi?id=11242
- d-bugmail puremagic.com (10/10) Oct 14 2013 http://d.puremagic.com/issues/show_bug.cgi?id=11242
http://d.puremagic.com/issues/show_bug.cgi?id=11242 Summary: [REG2.064beta] Fails to infer template argument with inout Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: regression Priority: P2 Component: DMD AssignedTo: nobody puremagic.com ReportedBy: doob me.com The following code: inout(T[]) fromString8(T) (inout(char[]) s, T[] dst) // line 12 { return s; } void main () { char[] a; fromString8(a, a); // line 20 } Results in this error message: main.d(20): Error: template main.fromString8 does not match any function template declaration. Candidates are: main.d(12): main.fromString8(T)(inout(char[]) s, T[] dst) main.d(20): Error: template main.fromString8(T)(inout(char[]) s, T[] dst) cannot deduce template function from argument types !()(char[], char[]) This compile: fromString8!(char)(a, a); And if I remove "inout" it compiles as well. The commit that broke this code is: https://github.com/D-Programming-Language/dmd/commit/89e1796d011847494c160db8cb90792765fc4e58 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Oct 13 2013
http://d.puremagic.com/issues/show_bug.cgi?id=11242 Kenji Hara <k.hara.pg gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |pull, rejects-valid https://github.com/D-Programming-Language/dmd/pull/2663 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Oct 13 2013
http://d.puremagic.com/issues/show_bug.cgi?id=11242 Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/81e6841b24e8a36e55ed06f781db16b50d76a05a fix Issue 11242 - Fails to infer template argument with inout https://github.com/D-Programming-Language/dmd/commit/44c2f3dcc3f04696d30fb7755af6417d1043f872 [REG2.064a] Issue 11242 - Fails to infer template argument with inout -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Oct 14 2013
http://d.puremagic.com/issues/show_bug.cgi?id=11242 Commit pushed to 2.064 at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/5310d645810b2276f4db23009d0880c9c0968b22 [REG2.064a] Issue 11242 - Fails to infer template argument with inout -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Oct 14 2013
http://d.puremagic.com/issues/show_bug.cgi?id=11242 Walter Bright <bugzilla digitalmars.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |bugzilla digitalmars.com Resolution| |FIXED -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Oct 14 2013