Summary: Possible circular reference
           Product: D
           Version: D2
          Platform: x86_64
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD

--- Comment #0 from Josh <> 2012-09-04 08:17:18 PDT ---
import std.stdio;

struct itemType
    @property double value() { return value; }

    this(double value)
        this.itemValue = value;

        double itemValue;

void main()
    itemType item = itemType(0.05);
    writeln(item.value); //this line fails

dmd code.d //Works fine

code.exe //Segfault

Surely, this shouldn't compile, as the property is either trying to return
itself or it's somehow thinking there is a value variable which doesn't exist.

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to