Summary: Wrong code for null-initializing a class with alias
           Product: D
           Version: D2
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD

--- Comment #0 from 2011-09-17 02:22:42 PDT ---
class Foo{
    string bar;
    alias bar this;

void main(){
    Foo foo = null; // segmentation fault at runtime

The compiler attempts to assign to foo's 'bar' field, instead of initializing
the class reference with zero. That always results in a segmentation fault.

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

Reply via email to