www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 11903] New: Internal error: backend/cgcs.c 351

reply d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=11903

           Summary: Internal error: backend/cgcs.c 351
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: dransic gmail.com



---
struct Foo
{
    immutable(int)[] list;
}

unittest
{
    enum foo = Foo([1, 2, 3]);
    foo.list ~= 4;
}

ICE with DMD64 D Compiler v2.065-devel-2318831:
Internal error: backend/cgcs.c 351

May be related to https://d.puremagic.com/issues/show_bug.cgi?id=11596

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jan 11 2014
next sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=11903


hsteoh quickfur.ath.cx changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |hsteoh quickfur.ath.cx



Can't reproduce problem on latest git HEAD
(786ea8228f836b1d80b36b991c534256ea6c9592). Tested on Linux/64bit. Has this bug
been fixed, or is it a platform-specific issue?

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jan 15 2014
prev sibling next sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=11903




---

 Can't reproduce problem on latest git HEAD
 (786ea8228f836b1d80b36b991c534256ea6c9592). Tested on Linux/64bit. Has this bug
 been fixed, or is it a platform-specific issue?
Yes, still there for me for this same commit. dmd -main -unittest -run test.d Internal error: backend/cgcs.c 351 dmd -main -unittest -O -run test.d Internal error: backend/cod2.c 4964 on Mac OSX 10.9, DMD64 D Compiler v2.065-devel-786ea82 -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jan 15 2014
prev sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=11903


Damian <damianday hotmail.co.uk> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |damianday hotmail.co.uk



Also happens with LDC 2.063.2  (0.12.0)

0  ldc2            0x0000000001014882 llvm::sys::PrintStackTrace(_IO_FILE*) +
34
1  ldc2            0x00000000010162ea
2  libpthread.so.0 0x00000000404491e0
3  ldc2            0x0000000000635596 DtoBitCast(llvm::Value*, llvm::Type*,
char const*) + 22
4  ldc2            0x00000000006e473c DtoCatAssignElement(Loc&, Type*, DValue*,
Expression*) + 220
5  ldc2            0x000000000065283b CatAssignExp::toElem(IRState*) + 235
6  ldc2            0x000000000065acc0 Expression::toElemDtor(IRState*) + 576
7  ldc2            0x000000000067ffeb ExpStatement::toIR(IRState*) + 91
8  ldc2            0x000000000067feaf CompoundStatement::toIR(IRState*) + 95
9  ldc2            0x000000000067feaf CompoundStatement::toIR(IRState*) + 95
10 ldc2            0x00000000006162e1 DtoDefineFunction(FuncDeclaration*) +
1905
11 ldc2            0x00000000006683cc Module::genLLVMModule(llvm::LLVMContext&)
+ 716
12 ldc2            0x000000000056c582 main + 5138
13 libc.so.6       0x0000000041299a15 __libc_start_main + 245
14 ldc2            0x0000000000555d69

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