digitalmars.D.bugs - [Issue 7895] New: Internal compiler error
- d-bugmail puremagic.com (50/50) Apr 12 2012 http://d.puremagic.com/issues/show_bug.cgi?id=7895
- d-bugmail puremagic.com (11/11) Apr 21 2012 http://d.puremagic.com/issues/show_bug.cgi?id=7895
http://d.puremagic.com/issues/show_bug.cgi?id=7895 Summary: Internal compiler error Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nobody puremagic.com ReportedBy: turkeyman gmail.com module remedy.math.matrix; struct Vector4 { float x = 0.0f; float y = 0.0f; float z = 0.0f; float w = 0.0f; static immutable zero = Vector4( 0.0f, 0.0f, 0.0f, 0.0f ); static immutable one = Vector4( 1.0f, 1.0f, 1.0f, 1.0f ); static immutable right = Vector4( 1.0f, 0.0f, 0.0f, 0.0f ); static immutable up = Vector4( 0.0f, 1.0f, 0.0f, 0.0f ); static immutable forward = Vector4( 0.0f, 0.0f, 1.0f, 0.0f ); static immutable origin = Vector4( 0.0f, 0.0f, 0.0f, 0.0f ); static immutable identity = Vector4( 0.0f, 0.0f, 0.0f, 1.0f ); } struct Matrix4 { union { struct { Vector4 x = Vector4.right; Vector4 y = Vector4.up; Vector4 z = Vector4.forward; Vector4 t = Vector4.zero; } float[16] m; Vector4[4] v; } static immutable Matrix4 identity = Matrix4.init; } The final line causes the error: static immutable Matrix4 identity = Matrix4.init; Remove the initialisation ( = Matrix4.init), and it works fine. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Apr 12 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7895 Manu <turkeyman gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED So it does. Resolved :) -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Apr 21 2012