Thread overview | ||||||
---|---|---|---|---|---|---|
|
January 31, 2012 [Issue 7414] New: Vector literal assignment doesn't work in global scope | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=7414 Summary: Vector literal assignment doesn't work in global scope 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 --- Comment #0 from Manu <turkeyman@gmail.com> 2012-01-31 11:12:22 PST --- This causes the same error with or without 'immutable', but works fine within functions. // create some global constants private { immutable ulong2 signMask2 = 0x8000_0000_0000_0000; immutable uint4 signMask4 = 0x8000_0000; immutable ushort8 signMask8 = 0x8000; immutable ubyte16 signMask16 = 0x80; } $ /opt/gdc/bin/gdc test.d -O2 -S -msse2 test.d:101: Error: non-constant expression cast(immutable(__vector(ulong[2u])))9223372036854775808LU test.d:102: Error: non-constant expression cast(immutable(__vector(uint[4u])))-2147483648u test.d:103: Error: non-constant expression cast(immutable(__vector(ushort[8u])))32768 test.d:104: Error: non-constant expression cast(immutable(__vector(ubyte[16u])))128 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
April 21, 2012 [Issue 7414] Vector literal assignment doesn't work in global scope | ||||
---|---|---|---|---|
| ||||
Posted in reply to Manu | http://d.puremagic.com/issues/show_bug.cgi?id=7414 SomeDude <lovelydear@mailmetrash.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |lovelydear@mailmetrash.com --- Comment #1 from SomeDude <lovelydear@mailmetrash.com> 2012-04-21 05:35:27 PDT --- See also issue 7413 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
May 01, 2012 [Issue 7414] Vector literal assignment doesn't work in global scope | ||||
---|---|---|---|---|
| ||||
Posted in reply to Manu | http://d.puremagic.com/issues/show_bug.cgi?id=7414 --- Comment #2 from github-bugzilla@puremagic.com 2012-05-01 14:04:34 PDT --- Commit pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/545c0e187dee1cde236b88523d3389d39dee7f8c fix Issue 7414 - Vector literal assignment doesn't work in global scope -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
May 01, 2012 [Issue 7414] Vector literal assignment doesn't work in global scope | ||||
---|---|---|---|---|
| ||||
Posted in reply to Manu | http://d.puremagic.com/issues/show_bug.cgi?id=7414 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: ------- |
Copyright © 1999-2021 by the D Language Foundation