[Issue 11270] [REG 2.064] Initialization of struct in constructor
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Oct 15 03:59:53 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=11270
--- Comment #1 from Kenji Hara <k.hara.pg at gmail.com> 2013-10-15 03:59:51 PDT ---
(In reply to comment #0)
> The following code used to work dmd 2.064 beta 1 and all versions before that.
> It just broke on the latest version of the 2.064 branch on git.
>
> repro.d(13): Error: cannot implicitly convert expression (f) of type float to
> netvar!float
With 2.057-2.063, same error occurs for the code.
> Although I'm not really sure if this is a bug or if the code is invalid and
> just used to work because of other bugs.
As far as I know, the repro case is invalid. On the variable initialization
`netvar!float f2 = f;` opAssign never invoked.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list