This is a followup to my original post on March 9 about issues building
dmd-2.102.2 on an old Linux x86_64 system.
See bugzilla:
https://issues.dlang.org/show_bug.cgi?id=23846
The short answer is it is fixed as of dmd-2.104.0-beta.1, that version
now builds dmd and phobos successfully.
On Monday, 8 May 2023 at 11:43:33 UTC, Richard (Rikki) Andrew
Cattermole wrote:
Don't forget to type bad2 which gives the same result as the
good one. Otherwise it only has 7 elements in it.
Thank You, now that's good too.
So here are the weird stuff:
Pure arrays produce errors:
enum ubyte16
Don't forget to type bad2 which gives the same result as the good one.
Otherwise it only has 7 elements in it.
```d
static immutable ubyte16 bad2 = [1, 2, 3, 4, 5, 6, 7];
```
```
[1, 2, 3, 4, 5, 6, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0]
[101, 102, 103, 104, 105, 106, 107, 100, 100, 100, 100, 100, 100, 1
On Monday, 8 May 2023 at 08:05:13 UTC, Richard (Rikki) Andrew
Cattermole wrote:
Yes, there is a pragma msg bug, but there is also a functionality
'bug'.
I collected some more info:
```
import std, core.simd, ldc.llvmasm;
T pshufb(T, U)(T a, in U b) { return __asm!ubyte16("pshufb $2,
$1", "
On 08/05/2023 9:07 AM, realhet wrote:
I just don't understand why the int array fails -> [1, 2, 3] It
would look so nice.
It doesn't.
```d
import std, core.simd;
void main()
{
enum ubyte16
good1 = mixin([1, 2, 3, 4]),
bad = [1, 2, 3, 4];
static immutable ubyte