digitalmars.D.bugs - [Issue 7851] New: Internal error: e2ir.c 688
- d-bugmail puremagic.com (45/45) Apr 07 2012 http://d.puremagic.com/issues/show_bug.cgi?id=7851
- d-bugmail puremagic.com (13/13) May 02 2012 http://d.puremagic.com/issues/show_bug.cgi?id=7851
- d-bugmail puremagic.com (11/11) May 14 2012 http://d.puremagic.com/issues/show_bug.cgi?id=7851
- d-bugmail puremagic.com (32/32) May 15 2012 http://d.puremagic.com/issues/show_bug.cgi?id=7851
- d-bugmail puremagic.com (8/8) May 15 2012 http://d.puremagic.com/issues/show_bug.cgi?id=7851
- d-bugmail puremagic.com (9/9) May 15 2012 http://d.puremagic.com/issues/show_bug.cgi?id=7851
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
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: -------
Apr 07 2012
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
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 02 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7851
Don <clugdbug yahoo.com.au> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |clugdbug yahoo.com.au
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 14 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7851
Walter Bright <bugzilla digitalmars.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |bugzilla digitalmars.com
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 15 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7851 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 15 2012
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: -------
May 15 2012









d-bugmail puremagic.com 