Thread overview | |||||||||
---|---|---|---|---|---|---|---|---|---|
|
December 01, 2011 [Issue 7043] New: CTFE: ICE illegal reference value 0LU | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=7043 Summary: CTFE: ICE illegal reference value 0LU Product: D Version: D1 & D2 Platform: All OS/Version: All Status: NEW Keywords: ice-on-valid-code Severity: normal Priority: P2 Component: DMD AssignedTo: nobody@puremagic.com ReportedBy: mrmocool@gmx.de --- Comment #0 from Trass3r <mrmocool@gmx.de> 2011-12-01 07:48:01 PST --- import std.conv; string demangleZSymbols(string sym) { char[] res; try auto len = parse!uint(sym); catch (Exception e) sym = null; return cast(immutable) res; } pragma(msg, demangleZSymbols("8serenity9persister6Sqlite7__arrayZ")); $ dmd -c -release -O -inline treemapgen.d std/array.d(467): Error: CTFE internal error: illegal reference value 0LU dmd: interpret.c:6244: void VarDeclaration::createRefValue(Expression*): Assertion `IsRefValueValid(newval)' failed. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
December 01, 2011 [Issue 7043] CTFE: ICE illegal reference value 0LU | ||||
---|---|---|---|---|
| ||||
Posted in reply to Trass3r | http://d.puremagic.com/issues/show_bug.cgi?id=7043 --- Comment #1 from Trass3r <mrmocool@gmx.de> 2011-12-01 07:50:38 PST --- Created an attachment (id=1048) withoutstd Here's a reduced version not importing phobos. Don't know if that helps. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
December 02, 2011 [Issue 7043] CTFE: ICE illegal reference value 0LU, only with -inline | ||||
---|---|---|---|---|
| ||||
Posted in reply to Trass3r | http://d.puremagic.com/issues/show_bug.cgi?id=7043 Don <clugdbug@yahoo.com.au> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |clugdbug@yahoo.com.au Summary|CTFE: ICE illegal reference |CTFE: ICE illegal reference |value 0LU |value 0LU, only with | |-inline --- Comment #2 from Don <clugdbug@yahoo.com.au> 2011-12-02 02:41:53 PST --- Reduced test case, requires -inline: bool decode(S)(ref int x) { return true; } bool front(A)() { int i = 0; return decode!(char)(i); } static assert( is(typeof({ front!(int)(); }())) ); static assert ( front!(int)()); -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
December 02, 2011 [Issue 7043] CTFE: ICE illegal reference value 0LU, only with -inline | ||||
---|---|---|---|---|
| ||||
Posted in reply to Trass3r | http://d.puremagic.com/issues/show_bug.cgi?id=7043 --- Comment #3 from Don <clugdbug@yahoo.com.au> 2011-12-02 02:52:02 PST --- Further reduced. Still requires -inline. bool bug7043(S)(ref int x) { return true; } static assert( { int i = 0; return bug7043!(char)(i); }() ); -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
December 19, 2011 [Issue 7043] CTFE: ICE illegal reference value 0LU, only with -inline | ||||
---|---|---|---|---|
| ||||
Posted in reply to Trass3r | http://d.puremagic.com/issues/show_bug.cgi?id=7043 Walter Bright <bugzilla@digitalmars.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |bugzilla@digitalmars.com Resolution| |FIXED --- Comment #4 from Walter Bright <bugzilla@digitalmars.com> 2011-12-18 21:57:10 PST --- https://github.com/D-Programming-Language/dmd/commit/d0e793e0e62d3d11ab9c622e934388d16af51c3b https://github.com/D-Programming-Language/dmd/commit/325e94c9354fd5d3e21a1976df83b78a2d3a1a41 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation