[Issue 7953] DMD Error: variable r used before set when compiling with -O

2016-04-24 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=7953

--- Comment #7 from Walter Bright  ---
(In reply to SomeDude from comment #3)
> but I can't reproduce the error message, so maybe I've overlooked something.
> However, interestingly, this compiles with -O flag and crashes the compiler
> without.
> 
> PS E:\DigitalMars\dmd2\samples> rdmd bug.d
> Internal error: ..\ztc\cg87.c 1699

This works without error in the current compiler.

--


[Issue 7953] DMD Error: variable r used before set when compiling with -O

2016-04-24 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=7953

Walter Bright  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||bugzi...@digitalmars.com
 Resolution|--- |INVALID

--- Comment #6 from Walter Bright  ---
float4 r;
...
res.ptr[4] = r.ptr[4]; // Error: variable r used before set

The error here is that there are only 4 entries in float4, and you're indexing
the 5th one. If the function is marked @safe, it won't compile.

Not a compiler bug.

--


[Issue 15945] sizeof on an invalid type seems to compile.

2016-04-24 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15945

Marco Leise  changed:

   What|Removed |Added

 CC||marco.le...@gmx.de

--- Comment #1 from Marco Leise  ---
You are not indexing T, you are creating a static array of length 0, hence why
it returns 0 for the size. Try T.init[0] instead to use an instance of T.

--


[Issue 15907] Unjustified "is not visible from module" deprecation warning when using getMember trait

2016-04-24 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15907

Philpax  changed:

   What|Removed |Added

 CC||m...@philpax.me

--- Comment #2 from Philpax  ---
Just ran into this issue as well - are there any "decent" workarounds? All I've
found is manually excluding the problem objects before using getMember, but
that's not really a scalable fix.

--


[Issue 13698] ICE(e2ir.c) on on simd call

2016-04-24 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13698

--- Comment #2 from github-bugzi...@puremagic.com ---
Commits pushed to master at https://github.com/dlang/dmd

https://github.com/dlang/dmd/commit/c8700645b3148c26ae3ffe9bf24d621ae26223b7
fix Issue 13698 - ICE(e2ir.c) on on simd call

https://github.com/dlang/dmd/commit/78b065d9e445ac99e9cd6f8372fe626b17ac414b
Merge pull request #5685 from WalterBright/fix13698

fix Issue 13698 - ICE(e2ir.c) on on simd call

--