[Issue 5314] Wrong error message: struct within immutable member and postblit function

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Nov 3 05:16:48 PDT 2012


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


Denis Shelomovskij <verylonglogin.reg at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |verylonglogin.reg at gmail.com


--- Comment #11 from Denis Shelomovskij <verylonglogin.reg at 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: -------


More information about the Digitalmars-d-bugs mailing list