[Issue 11596] New: Internal error: backend/cgcs.c 351

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Nov 24 13:11:55 PST 2013


https://d.puremagic.com/issues/show_bug.cgi?id=11596

           Summary: Internal error: backend/cgcs.c 351
           Product: D
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: ice
          Severity: regression
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: nilsbossung at googlemail.com


--- Comment #0 from Nils <nilsbossung at googlemail.com> 2013-11-24 13:11:54 PST ---
Works: DMD64 D Compiler v2.064
Fails: DMD64 D Compiler v2.065-devel-4733291 (just git head, not the offending
commit)

---
cat > test.d << code
version(real_) alias M = real;
else version(static_array) alias M = int[2]; /* or other T[n] with n != 1 */

struct S {M m;}
S f() {assert(false);}

class C
{
    S[1] ss; /* Here, size doesn't matter. */
    this() {ss[] = f();}
}
code
echo real_; dmd -c -version=real_ test.d
echo static_array; dmd -c -version=static_array test.d
---
real_
Internal error: backend/cgcs.c 351
static_array
Internal error: backend/cgcs.c 351
---

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list