digitalmars.D.bugs - [Issue 6069] New: DMD tries to call static Foo.opCall() on cast(immutable(Foo))
- d-bugmail puremagic.com (34/34) May 28 2011 http://d.puremagic.com/issues/show_bug.cgi?id=6069
- d-bugmail puremagic.com (6/6) May 28 2011 http://d.puremagic.com/issues/show_bug.cgi?id=6069
- d-bugmail puremagic.com (10/10) Apr 23 2012 http://d.puremagic.com/issues/show_bug.cgi?id=6069
- d-bugmail puremagic.com (11/11) Apr 24 2012 http://d.puremagic.com/issues/show_bug.cgi?id=6069
http://d.puremagic.com/issues/show_bug.cgi?id=6069 Summary: DMD tries to call static Foo.opCall() on cast(immutable(Foo)) Product: D Version: D2 Platform: All OS/Version: All Status: NEW Keywords: rejects-valid Severity: major Priority: P2 Component: DMD AssignedTo: nobody puremagic.com ReportedBy: code klickverbot.at --- Comment #0 from klickverbot <code klickverbot.at> 2011-05-28 13:28:17 PDT --- struct Foo { static Foo opCall() { return Foo.init; } } void main() { auto foo = cast(immutable(Foo)) Foo.init; } // test.d(8): Error: function test.Foo.opCall () is not callable using argument types (Foo) // test.d(8): Error: expected 0 arguments, not 1 for non-variadic function type Foo() --- I don't know how DMD could possibly try to call a function inside the cast() type parameter, but it seems like it does. const() instead of immutable() produces the error as well, just cast(Foo) works. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
May 28 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6069 --- Comment #1 from klickverbot <code klickverbot.at> 2011-05-28 13:33:02 PDT --- Oh, forgot to add: I'm using latest Git master (2c1a453). -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
May 28 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6069 SomeDude <lovelydear mailmetrash.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |lovelydear mailmetrash.com --- Comment #2 from SomeDude <lovelydear mailmetrash.com> 2012-04-23 15:14:49 PDT --- Compiles fine on 2.059 Win32 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Apr 23 2012
http://d.puremagic.com/issues/show_bug.cgi?id=6069 klickverbot <code klickverbot.at> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #3 from klickverbot <code klickverbot.at> 2012-04-24 04:19:46 PDT --- Can't reproduce it with latest DMD anymore either, closing. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Apr 24 2012