Summary: Bad code generation for structs containing invariants
           Product: D
           Version: 2.029
          Platform: PC
        OS/Version: Mac OS X
            Status: NEW
          Keywords: wrong-code
          Severity: normal
          Priority: P2
         Component: DMD

The addresses output in this test case should match:

import core.stdc.stdio;

struct S
    this( string name )
        printf( "(ctor) &%.*s.x = %p\n", name, &x );

    invariant() {}

    int x;

void main()
    auto s = new S("s2");

    printf( "&s2.x = %p\n", &s.x );

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

Reply via email to