digitalmars.D.bugs - [Issue 6246] New: Struct instance parameterized with an Integral fails as argument to functions/methods
- d-bugmail puremagic.com (34/34) Jul 03 2011 http://d.puremagic.com/issues/show_bug.cgi?id=6246
- d-bugmail puremagic.com (10/10) Apr 24 2012 http://d.puremagic.com/issues/show_bug.cgi?id=6246
- d-bugmail puremagic.com (11/11) Apr 24 2012 http://d.puremagic.com/issues/show_bug.cgi?id=6246
http://d.puremagic.com/issues/show_bug.cgi?id=6246 Summary: Struct instance parameterized with an Integral fails as argument to functions/methods Product: D Version: D2 Platform: All OS/Version: Linux Status: NEW Severity: major Priority: P2 Component: DMD AssignedTo: nobody puremagic.com ReportedBy: puneet coverify.org --- Comment #0 from Puneet Goel <puneet coverify.org> 2011-07-03 22:30:15 PDT --- struct Foo (size_t N) { void opAssign (size_t NN)(Foo!(NN) f) {/*do nothing*/} } struct Bar (string S) { void opAssign (string SS)(Bar!(SS) f) {/*do nothing*/} } void main() { Bar!"BAR1" bar1; Bar!"BAR2" bar2; bar2 = bar1; // this compiles fine Foo!4 foo1; Foo!4 foo2; foo2 = foo1; // compilation error } Gives an error saying: Error: cannot implicitly convert expression (foo1) of type Foo!(4) to Foo!(NN) Structs with string parameters work just fine. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jul 03 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6246 SomeDude <lovelydear mailmetrash.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |lovelydear mailmetrash.com --- Comment #1 from SomeDude <lovelydear mailmetrash.com> 2012-04-24 12:08:35 PDT --- Compiles and runs with 23059 Win32 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Apr 24 2012
http://d.puremagic.com/issues/show_bug.cgi?id=6246 Kenji Hara <k.hara.pg gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |DUPLICATE --- Comment #2 from Kenji Hara <k.hara.pg gmail.com> 2012-04-24 18:01:52 PDT --- *** This issue has been marked as a duplicate of issue 3467 *** -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Apr 24 2012