[Issue 2672] Delegate .funcptr returns wrong type.

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

zopsi...@use.startmail.com changed:

   What|Removed |Added

 CC||zopsi...@use.startmail.com

--


[Issue 2672] Delegate .funcptr returns wrong type.

2020-08-27 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=2672

Simen Kjaeraas  changed:

   What|Removed |Added

 CC||to...@weka.io

--- Comment #8 from Simen Kjaeraas  ---
*** Issue 21195 has been marked as a duplicate of this issue. ***

--


[Issue 2672] Delegate .funcptr returns wrong type.

2017-12-04 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=2672

Mike Franklin  changed:

   What|Removed |Added

   See Also||https://issues.dlang.org/sh
   ||ow_bug.cgi?id=3010

--


[Issue 2672] Delegate .funcptr returns wrong type.

2017-12-04 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=2672

Mike Franklin  changed:

   What|Removed |Added

 CC||slavo5...@yahoo.com
   See Also||https://issues.dlang.org/sh
   ||ow_bug.cgi?id=3720

--


[Issue 2672] Delegate .funcptr returns wrong type.

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

Andrei Alexandrescu  changed:

   What|Removed |Added

Version|D1 & D2 |D2

--


[Issue 2672] Delegate .funcptr returns wrong type.

2013-08-17 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=2672


yebblies  changed:

   What|Removed |Added

 CC||simen.kja...@gmail.com


--- Comment #7 from yebblies  2013-08-18 16:15:59 EST ---
*** Issue 10324 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 2672] Delegate .funcptr returns wrong type.

2012-01-29 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=2672


yebblies  changed:

   What|Removed |Added

 CC||yebbl...@gmail.com
   Platform|x86 |All
Version|2.025   |D1 & D2
 AssignedTo|nob...@puremagic.com|yebbl...@gmail.com
 OS/Version|Windows |All
   Severity|normal  |major


--- Comment #6 from yebblies  2012-01-30 17:17:26 EST ---
Same sort of thing as issue 3720.

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


[Issue 2672] Delegate .funcptr returns wrong type.

2009-05-20 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=2672


Don  changed:

   What|Removed |Added

   Keywords|ice-on-valid-code   |




--- Comment #5 from Don   2009-05-20 02:18:16 PDT ---
I have created bug 3010 to cover the two Internal Compiler Errors mentioned in
the comments, since it's a completely unrelated issue. I'm therefore removing
ice-on-valid-code from this bug.

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


[Issue 2672] Delegate .funcptr returns wrong type.

2009-05-19 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=2672


Don  changed:

   What|Removed |Added

 CC||clugd...@yahoo.com.au




--- Comment #4 from Don   2009-05-19 00:35:27 PDT ---

Simple test case for the ICE:
-
auto x = &bar;
int bar() { return 1;}
int function() y = null;
-
Curiously, it's crashing on the assignment to y! It doesn't happen if you move
y above x. Something in the declaration of x is corrupting a data structure
(it's related to MODinvariant). I'm still tracking it down.

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


[Issue 2672] Delegate .funcptr returns wrong type.

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





--- Comment #3 from to...@famolsen.dk  2009-03-02 08:48 ---
I still think it's silly to throw away function/delegate type compatibility
just for the reason of defining parameter passing order at some point in the
future. I already posted on the NG about this quite a while back, but my
opinion stands!

ABI compatibility should be a good thing, in these cases, it's a stick in the
wheel!


-- 



[Issue 2672] Delegate .funcptr returns wrong type.

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





--- Comment #2 from kamm-removet...@incasoftware.de  2009-03-02 05:43 
---
Not every delegate can be called as a function. Consider a delegate with the
signature 'Struct delegate(int)' whose parameters get passed as a1, hidden,
this. If you cast its funcptr to 'Struct function(int a1, void* fthis)' the
arguments will be passed as a1, fthis, hidden.

Delegates that don't use hidden can be represented as a function with the this
pointer as the last argument.

I'd argue that funcptr shouldn't have a function type at all.


-- 



[Issue 2672] Delegate .funcptr returns wrong type.

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





--- Comment #1 from dsim...@yahoo.com  2009-03-01 19:44 ---
Sane version of this bug report, not posted ridiculously late at night (don't
know what I was thinking on my initial post):

void delegate(uint) foo;

pragma(msg, typeof(foo.funcptr).stringof);  // void function(uint)

Because of this, you can't use foo.funcptr for calling the underlying function.
 The correct type would be void function(void*, uint).


--