http://d.puremagic.com/issues/show_bug.cgi?id=5314


Denis Shelomovskij <verylonglogin....@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |verylonglogin....@gmail.com


--- Comment #11 from Denis Shelomovskij <verylonglogin....@gmail.com> 
2012-11-03 15:16:46 MSK ---
Original example compiles fine now but is the issue fixed?

Can somebody familiar with dmd internals check if "%s is not mutable" error
message gives line now:
https://github.com/D-Programming-Language/dmd/blob/master/src/expression.c



Also example from comment #6 with uncommented `opAssign` new writes this:

main.d(29): -------
main.d(31): -------
constructor: 6
main.d(33): -------
postblit: 7
main.d(35): -------
opAssign: 7
postblit: 7              <- added line
main.d(37): -------

The line is added correctly and indicates a fixed compiler bug because

    Foo opAssign(const ref Foo other)

returns by value so a temporary is created.

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

Reply via email to