[Issue 6774] ICE(glue.c) totym gagged forward reference error

2013-10-05 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6774


Walter Bright bugzi...@digitalmars.com changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||bugzi...@digitalmars.com
 Resolution||WORKSFORME


--- Comment #8 from Walter Bright bugzi...@digitalmars.com 2013-10-05 
20:26:52 PDT ---
(In reply to comment #7)
 Reduced test case for comment 5:
 
 void foo(T)(ref immutable(T) data) {}
 
 void test6774() {
   immutable a = 2.0f;
   foo!(float)(a);
 }


This compiles without error on 2.064 head.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---


[Issue 6774] ICE(glue.c) totym gagged forward reference error

2012-11-15 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6774



--- Comment #7 from Don clugd...@yahoo.com.au 2012-11-14 23:55:13 PST ---
Reduced test case for comment 5:

void foo(T)(ref immutable(T) data) {}

void test6774() {
  immutable a = 2.0f;
  foo!(float)(a);
}

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---


[Issue 6774] ICE(glue.c) totym gagged forward reference error

2012-06-14 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6774


Roman D. Boiko r...@d-coding.com changed:

   What|Removed |Added

 CC||r...@d-coding.com


--- Comment #5 from Roman D. Boiko r...@d-coding.com 2012-06-14 10:22:27 PDT 
---
struct S(T) {
  pure nothrow static void foo(immutable(T) data) {}
  pure nothrow static void foo(ref immutable(T) data) {}
}
unittest {
  immutable a = 2.0f;
  S!float.foo(a);
}

compiler is run with the following flags:
-m64 -w -debug -gc -fPIC -unittest

on Ubuntu 12.10 x64.

Result:

Error: 2 is not an lvalue
dmd: glue.c:1114: virtual unsigned int Type::totym(): Assertion `0' failed.
Aborted (core dumped)
make: *** [build/client] Error 134

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---


[Issue 6774] ICE(glue.c) totym gagged forward reference error

2012-06-14 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6774



--- Comment #6 from Roman D. Boiko r...@d-coding.com 2012-06-14 10:26:37 PDT 
---
(In reply to comment #5)
 compiler is run with the following flags:
 -m64 -w -debug -gc -fPIC -unittest
Actually, -unittest is enough, other flags don't affect the result.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---


[Issue 6774] ICE(glue.c) totym gagged forward reference error

2012-04-19 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6774



--- Comment #4 from Andrej Mitrovic andrej.mitrov...@gmail.com 2012-04-19 
18:55:30 PDT ---
Updates:
OP sample works in 2.057+.

Kenji's sample works in 2.059.

Heywood's sample still ICEs, except it seems to ice regardless of the -g flag:
Assertion failure: '0' on line 1114 in file 'glue.c'

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---


[Issue 6774] ICE(glue.c) totym gagged forward reference error

2011-12-26 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6774


David Simcha dsim...@yahoo.com changed:

   What|Removed |Added

 CC||dsim...@yahoo.com
Summary|ICE(glue.c) gagged forward  |ICE(glue.c) totym gagged
   |reference error |forward reference error


--- Comment #2 from David Simcha dsim...@yahoo.com 2011-12-26 07:57:41 PST ---
I just spent a bunch of time reducing a test case only to then stumble on this
duplicate bug.  To add some detail so that anyone who runs into it in the
future can find it, the ICE error message is:

glue.c:1065: virtual unsigned int Type::totym(): Assertion `0' failed.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---