Summary: backend/cod1.c 1677, related to structs with
                    constructors (?)
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: regression
          Priority: P2
         Component: DMD

--- Comment #0 from klickverbot <> 2012-06-22 08:46:53 PDT 
The following test case was reduced from code passing a core.time.Duration
using std.concurrency:
struct Foo {
    this(long) {}

struct FooContainer {
    Foo value;

auto get() {
    union Buf { FooContainer result; }
    Buf buf = {};
    return buf.result;

void writerThread() {
    auto a = get();

DMD 3bfac139 (on OS X) fails with: Internal error: backend/cod1.c 1677

In the original much larger test case, the error was different, although
probably related (I'll re-test it once this version has been addressed):
el:0x1008c5d70 cnt=0 cs=0 call  8 TYstruct 0x1008a27d0 0x1008aad70
 el:0x1008a27d0 cnt=0 cs=0 var  TYD func 
 el:0x1008aad70 cnt=0 cs=0 +  TY* 0x1008c6a30 0x1008aabf0
  el:0x1008c6a30 cnt=1 cs=0 var  TY*  this
  el:0x1008aabf0 cnt=0 cs=0 const  TYuns long long 8LL 
Internal error: backend/cod1.c 3235

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

Reply via email to