[Issue 16225] New: Internal error cod1.c 1338 with -O

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Fri Jul 1 10:56:45 PDT 2016


https://issues.dlang.org/show_bug.cgi?id=16225

          Issue ID: 16225
           Summary: Internal error cod1.c 1338 with -O
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: 4burgos at gmail.com

When using -O with dmd fails with the following code (reduced):


```
struct C
{
    hash_t foo( )
    {
        int y;
        return ((cast(ubyte*)&y)[1]);
    }
}
```


```
nemanjaboric:/home/nemanjaboric/test-clean.reduced  $ dmd -O testreduced.d 
Internal error: backend/cod1.c 1338
```

```
DMD64 D Compiler v2.071.1
```

--


More information about the Digitalmars-d-bugs mailing list