[Issue 12624] Internal error: backend\cgobj.c 2313 with Rebindable!(immutable TimeZone) in std.datetime

2015-11-03 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12624

yebblies  changed:

   What|Removed |Added

   Assignee|nob...@puremagic.com|yebbl...@gmail.com

--- Comment #5 from yebblies  ---
I'll add it to my list.

--


[Issue 12624] Internal error: backend\cgobj.c 2313 with Rebindable!(immutable TimeZone) in std.datetime

2015-10-29 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12624

Cauterite  changed:

   What|Removed |Added

   Keywords|iasm|
   Assignee|cauter...@gmail.com |nob...@puremagic.com

--


[Issue 12624] Internal error: backend\cgobj.c 2313 with Rebindable!(immutable TimeZone) in std.datetime

2015-10-28 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12624

anoneu...@gmail.com changed:

   What|Removed |Added

   Keywords||iasm
 CC||anoneu...@gmail.com
   Assignee|nob...@puremagic.com|anoneu...@gmail.com

--


[Issue 12624] Internal error: backend\cgobj.c 2313 with Rebindable!(immutable TimeZone) in std.datetime

2015-10-21 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12624

Jonathan M Davis  changed:

   What|Removed |Added

 CC||yebbl...@gmail.com

--- Comment #4 from Jonathan M Davis  ---
@yebblies At dconf, you were offering to look at this if it was still happening
(which it is, though obviously it took me a while to get around to verifying
that). So, I'm adding you to the cc list. Feel free to look into this or ignore
it as your time allows, but it would be nice if this got fixed.

--


[Issue 12624] Internal error: backend\cgobj.c 2313 with Rebindable!(immutable TimeZone) in std.datetime

2015-10-10 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12624

Rainer Schuetze  changed:

   What|Removed |Added

 CC||r.sagita...@gmx.de

--- Comment #3 from Rainer Schuetze  ---
I've used this bug to test the DustMite integration of Visual D, the result
was:

// datetime.d
struct SysTime
{
import typecons;

Rebindable!(immutable TimeZone) _timezone = UTC();
}


class TimeZone
{
this(string , string , string ) immutable {}
}


class UTC : TimeZone
{
static immutable(UTC) opCall()
{
return _utc;
}

this() immutable {
super("UTC", "UTC", "UTC");
}

static _utc = new immutable(UTC);
}


// typecons.d
template RebindableCommon(T, U, This)
{
union { U stripped; }

void opAssign(T another) 
{
stripped = cast() another;
}

this(T initializer)
{
opAssign(initializer);
}
}


template Rebindable(T)
{
static if (is(T == immutable U, U))
struct Rebindable
{
mixin RebindableCommon!(T, U, Rebindable);
}
}



compile with "dmd -lib datetime.d typecons.d" on git HEAD:
Internal error: backend\cgobj.c 2332

Compiling with "-c" instead of "-lib" does not raise the ICE.

--


[Issue 12624] Internal error: backend\cgobj.c 2313 with Rebindable!(immutable TimeZone) in std.datetime

2015-10-10 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12624

--- Comment #2 from Jonathan M Davis  ---
Well, this is a finicky one. I'd tried to reduce the failing code to something
more manageable in the past and failed, but I thought that I'd take another
stab at it, and simply copying the entire std.datetime module to a module
separate from Phobos (and changing the module declaration of course) and then
doing

Rebindable!(immutable TimeZone) _timezone = UTC();

works instead of failing like it does when that line is changed inside of
Phobos.

It wouldn't surprise me if this problem simply went away when I finally split
of std.datetime (which I think that I'm going to take another stab at getting
done shortly) simply due to how specific the failure is - which just means that
the compiler bug would then be hidden away again rather than anything truly
having been fixed (which certainly isn't good), but if it went away like that,
at least it wouldn't be blocking improvements to SysTime anymore.

--


[Issue 12624] Internal error: backend\cgobj.c 2313 with Rebindable!(immutable TimeZone) in std.datetime

2015-10-07 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12624

--- Comment #1 from Jonathan M Davis  ---
Still happens with the latest master, though now it spits out

Internal error: backend\cgobj.c 2332

--


[Issue 12624] Internal error: backend\cgobj.c 2313 with Rebindable!(immutable TimeZone) in std.datetime

2014-04-23 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12624

Jonathan M Davis  changed:

   What|Removed |Added

   Keywords||ice
 Blocks||12507

--