[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
Thu Feb 25 09:08:14 UTC 2021


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

--- Comment #7 from Iain Buclaw <ibuclaw at gdcproject.org> ---
(In reply to RazvanN from comment #6)
> (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

Yes it does (v2.094.2-beta.1-559-g4522e0236)

>  
> > 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.
> 

No it doesn't (v2.094.2-beta.1-559-g4522e0236)

--


More information about the Digitalmars-d-bugs mailing list