digitalmars.D.bugs - [Issue 1344] New: Can't implicitly convert literal 0 to typedef of ulong
- d-bugmail puremagic.com (25/25) Jul 17 2007 http://d.puremagic.com/issues/show_bug.cgi?id=1344
- d-bugmail puremagic.com (12/12) Jul 23 2007 http://d.puremagic.com/issues/show_bug.cgi?id=1344
- d-bugmail puremagic.com (15/15) Feb 03 2012 http://d.puremagic.com/issues/show_bug.cgi?id=1344
http://d.puremagic.com/issues/show_bug.cgi?id=1344 Summary: Can't implicitly convert literal 0 to typedef of ulong Product: D Version: 1.018 Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: bugzilla digitalmars.com ReportedBy: webmaster villagersonline.com The following will not compile: typedef uint u32; typedef ulong u64; void main() { uint a = 0; ulong b = 0; u32 c = 0; u64 d = 0; } It fails with the following error: foo.d(7): Error: cannot implicitly convert expression (0) of type int to u64 Notice that it works just find with typedefs of uint. --
Jul 17 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1344 thomas-dloop kuehne.cn changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|Can't implicitly convert |Can't implicitly convert |literal 0 to typedef of |literal 0 to typedef of |ulong |ulong ------- Comment #1 from thomas-dloop kuehne.cn 2007-07-23 14:55 ------- Added to DStress as http://dstress.kuehne.cn/compile/t/typedef_24_A.d http://dstress.kuehne.cn/compile/t/typedef_24_B.d --
Jul 23 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1344 yebblies <yebblies gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |yebblies gmail.com Platform|x86 |All Summary|Can't implicitly convert |(D1 only) Can't implicitly |literal 0 to typedef of |convert literal 0 to |ulong |typedef of ulong OS/Version|Linux |All --- Comment #2 from yebblies <yebblies gmail.com> 2012-02-03 21:31:19 EST --- D1 only, as typedef is deprecated in D2. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Feb 03 2012