[Issue 11903] Internal error: backend/cgcs.c 351
https://issues.dlang.org/show_bug.cgi?id=11903 Basile-z changed: What|Removed |Added CC|b2.t...@gmx.com | --
[Issue 11903] Internal error: backend/cgcs.c 351
https://issues.dlang.org/show_bug.cgi?id=11903 Basile-z changed: What|Removed |Added Status|NEW |RESOLVED Resolution|--- |WORKSFORME --- Comment #6 from Basile-z --- 2.082.1 to 2.084.1: Status -4 and no output 2.085.1: Success and no output 2.086.1: Status -4 and no output Since 2.087.1: Failure with output: onlineapp.d(9): Error: cannot modify constant expression `Foo([]).list` --
[Issue 11903] Internal error: backend/cgcs.c 351
https://issues.dlang.org/show_bug.cgi?id=11903 Basile-z changed: What|Removed |Added Keywords||ice-on-invalid-code CC||b2.t...@gmx.com --- Comment #5 from Basile-z --- reduced, no need for -unittest, should be a fail compilation: --- struct Foo { int[] list; } void main() { enum foo = Foo([]); foo.list ~= 4; } --- because `foo.list` is not modifiable (or not a Lvalue). The error must be detected in the front-end. --
[Issue 11903] Internal error: backend/cgcs.c 351
https://issues.dlang.org/show_bug.cgi?id=11903 hst...@quickfur.ath.cx changed: What|Removed |Added Severity|normal |critical --
[Issue 11903] Internal error: backend/cgcs.c 351
https://issues.dlang.org/show_bug.cgi?id=11903 --- Comment #4 from hst...@quickfur.ath.cx --- Reproduced error in git HEAD, only happens when compiling with -unittest. --
[Issue 11903] Internal error: backend/cgcs.c 351
https://d.puremagic.com/issues/show_bug.cgi?id=11903 Damian damian...@hotmail.co.uk changed: What|Removed |Added CC||damian...@hotmail.co.uk --- Comment #3 from Damian damian...@hotmail.co.uk 2014-02-15 04:49:45 PST --- Also happens with LDC 2.063.2 (0.12.0) 0 ldc20x01014882 llvm::sys::PrintStackTrace(_IO_FILE*) + 34 1 ldc20x010162ea 2 libpthread.so.0 0x404491e0 3 ldc20x00635596 DtoBitCast(llvm::Value*, llvm::Type*, char const*) + 22 4 ldc20x006e473c DtoCatAssignElement(Loc, Type*, DValue*, Expression*) + 220 5 ldc20x0065283b CatAssignExp::toElem(IRState*) + 235 6 ldc20x0065acc0 Expression::toElemDtor(IRState*) + 576 7 ldc20x0067ffeb ExpStatement::toIR(IRState*) + 91 8 ldc20x0067feaf CompoundStatement::toIR(IRState*) + 95 9 ldc20x0067feaf CompoundStatement::toIR(IRState*) + 95 10 ldc20x006162e1 DtoDefineFunction(FuncDeclaration*) + 1905 11 ldc20x006683cc Module::genLLVMModule(llvm::LLVMContext) + 716 12 ldc20x0056c582 main + 5138 13 libc.so.6 0x41299a15 __libc_start_main + 245 14 ldc20x00555d69 -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 11903] Internal error: backend/cgcs.c 351
https://d.puremagic.com/issues/show_bug.cgi?id=11903 hst...@quickfur.ath.cx changed: What|Removed |Added CC||hst...@quickfur.ath.cx --- Comment #1 from hst...@quickfur.ath.cx 2014-01-15 08:15:53 PST --- 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: ---
[Issue 11903] Internal error: backend/cgcs.c 351
https://d.puremagic.com/issues/show_bug.cgi?id=11903 --- Comment #2 from Nicolas Sicard dran...@gmail.com 2014-01-15 09:00:30 PST --- (In reply to comment #1) 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: ---