[Issue 19201] Error: func called with argument types (ulong) matches both: __c_long and __c_ulong

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Feb 24 14:44:25 UTC 2021


https://issues.dlang.org/show_bug.cgi?id=19201

RazvanN <razvan.nitu1305 at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |razvan.nitu1305 at gmail.com

--- Comment #6 from RazvanN <razvan.nitu1305 at gmail.com> ---
(In reply to Iain Buclaw from comment #4)
> Reopened as a regression, as this no longer compiles on OSX, but compiles on
> Linux (it should be compilable by all).
> ---
> import core.stdc.stdint;
> 
> void func(uint64_t r){}
> void func(int64_t r){}
> 
> void main()
> {
>     func(0L);
> }
> ---
>
This does not compile on linux either

> Conversely, this no longer compiles on Linux, but compiles on OSX (it should
> be rejected by all).
> ---
> import core.stdc.stdint;
> 
> void func(uint64_t r){}
> void func(int64_t r){}
> void func(ulong r){}
> void func(long r){}
> 
> void main()
> {
>     func(0L);
> }
> ---

This compiles on linux also.

Maybe this should be closed?

--


More information about the Digitalmars-d-bugs mailing list