Thread overview | ||||||||
---|---|---|---|---|---|---|---|---|
|
April 07, 2012 [Issue 7851] New: Internal error: e2ir.c 688 | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=7851 Summary: Internal error: e2ir.c 688 Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nobody@puremagic.com ReportedBy: iteronvexor@gmail.com --- Comment #0 from iteronvexor@gmail.com 2012-04-07 12:22:10 PDT --- DMD 2.059beta (not head), on a 64-bit GNU/Linux ---------------->8---------------->8---------------- import std.typecons; import std.stdio; void main() { alias Tuple!(int, long, float) TL; foreach (i, T; TL) writefln("TL[%d] = ", i, typeid(T)); } ----------------8<----------------8<---------------- I get: _field_field_0 Internal error: e2ir.c 688 source (under the section 'Looping'): http://dlang.org/tuple.html The code in that section is also wrong and doesn't compile. The following gives the correct output: ---------------->8---------------->8---------------- import std.typecons; import std.typetuple; import std.stdio; void main() { Tuple!(int, long, float) TL; foreach (i, T; TL) writefln("TL[%d] = %s", i, typeid(T)); alias TypeTuple!(3, 7L, 6.8) ET; foreach (i, E; ET) writefln("ET[%d] = %s", i, E); ----------------8<----------------8<---------------- -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
May 02, 2012 [Issue 7851] Internal error: e2ir.c 688 | ||||
---|---|---|---|---|
| ||||
Posted in reply to iteronvexor@gmail.com | http://d.puremagic.com/issues/show_bug.cgi?id=7851 Robert Clipsham <robert@octarineparrot.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |ice CC| |robert@octarineparrot.com Severity|normal |regression --- Comment #1 from Robert Clipsham <robert@octarineparrot.com> 2012-05-02 16:28:48 BST --- This is a regression (an error was issued in 2.057, the ICE was introduced in 2.058). -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
May 14, 2012 [Issue 7851] Internal error: e2ir.c 688 | ||||
---|---|---|---|---|
| ||||
Posted in reply to iteronvexor@gmail.com | http://d.puremagic.com/issues/show_bug.cgi?id=7851 Don <clugdbug@yahoo.com.au> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |clugdbug@yahoo.com.au --- Comment #2 from Don <clugdbug@yahoo.com.au> 2012-05-14 01:07:26 PDT --- Maybe this is bug 7851? (Which would make this a Phobos regression, even though it's a compiler bug) -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
May 16, 2012 [Issue 7851] Internal error: e2ir.c 688 | ||||
---|---|---|---|---|
| ||||
Posted in reply to iteronvexor@gmail.com | http://d.puremagic.com/issues/show_bug.cgi?id=7851 Walter Bright <bugzilla@digitalmars.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |bugzilla@digitalmars.com --- Comment #3 from Walter Bright <bugzilla@digitalmars.com> 2012-05-15 22:34:41 PDT --- This reduces to: template TypeTuple(TList...) { alias TList TypeTuple; } struct Tuple(Specs...) { TypeTuple!(int, long, float) mem; alias Identity!(mem[0]) _0; alias Identity!(mem[1]) _1; alias Identity!(mem[2]) _2; alias mem this; enum length = mem.length; } private template Identity(alias T) { alias T Identity; } void main() { alias Tuple!(int, long, float) TL; foreach (i; TL) { } } -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
May 16, 2012 [Issue 7851] Internal error: e2ir.c 688 | ||||
---|---|---|---|---|
| ||||
Posted in reply to iteronvexor@gmail.com | http://d.puremagic.com/issues/show_bug.cgi?id=7851 --- Comment #4 from github-bugzilla@puremagic.com 2012-05-15 23:07:51 PDT --- Commit pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/7e3a2205fca61512dd4245b939d4f7b4e7334419 fix Issue 7851 - Internal error: e2ir.c 688 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
May 16, 2012 [Issue 7851] Internal error: e2ir.c 688 | ||||
---|---|---|---|---|
| ||||
Posted in reply to iteronvexor@gmail.com | http://d.puremagic.com/issues/show_bug.cgi?id=7851 Walter Bright <bugzilla@digitalmars.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED -- 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