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

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Jun 14 10:20:22 PDT 2012


http://d.puremagic.com/issues/show_bug.cgi?id=6774


Roman D. Boiko <rb at d-coding.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rb at d-coding.com


--- Comment #5 from Roman D. Boiko <rb at 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: -------


More information about the Digitalmars-d-bugs mailing list