[Issue 18650] DMD shouldn't include all unittests with -deps

2018-03-25 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18650

Carsten Blüggel  changed:

   What|Removed |Added

 CC||chi...@posteo.net

--


[Issue 18629] std.algorithm.iteration.subsitute is slow

2018-03-25 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18629

Carsten Blüggel  changed:

   What|Removed |Added

 CC||chi...@posteo.net

--


[Issue 18598] cyclic constructor calls have undefined behavior but are accepted in @safe code

2018-03-25 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18598

Carsten Blüggel  changed:

   What|Removed |Added

 CC||chi...@posteo.net

--


[Issue 18661] auto ref and return attribute inference

2018-03-25 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18661

Carsten Blüggel  changed:

   What|Removed |Added

 CC||chi...@posteo.net

--


[Issue 18657] std.range and std.algorithm can't handle refRange

2018-03-25 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18657

Carsten Blüggel  changed:

   What|Removed |Added

 CC||chi...@posteo.net

--


[Issue 18645] DMD segmentation fault

2018-03-25 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18645

greenify  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||greeen...@gmail.com
 Resolution|--- |FIXED

--


[Issue 18661] auto ref and return attribute inference

2018-03-25 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18661

Walter Bright  changed:

   What|Removed |Added

   See Also||https://issues.dlang.org/sh
   ||ow_bug.cgi?id=17512

--


[Issue 17512] [REG 2.073] [DIP1000] Error on bad interplay of 'auto ref' and 'return' attribute deduction.

2018-03-25 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17512

Walter Bright  changed:

   What|Removed |Added

 Status|REOPENED|RESOLVED
   See Also||https://issues.dlang.org/sh
   ||ow_bug.cgi?id=18661
 Resolution|--- |FIXED

--- Comment #8 from Walter Bright  ---
(In reply to John Colvin from comment #7)
> This seems to not to be totally resolved in very similar cases:

Please do not reopen bugs because more issues come up. File a new issue
instead. Otherwise, bugzilla loses the 1:1 correlation between PRs and issues,
and becomes much less manageable.

I refiled it as https://issues.dlang.org/show_bug.cgi?id=18661

Closing this again.

--


[Issue 18661] New: auto ref and return attribute inference

2018-03-25 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18661

  Issue ID: 18661
   Summary: auto ref and return attribute inference
   Product: D
   Version: D2
  Hardware: All
OS: All
Status: NEW
  Severity: normal
  Priority: P1
 Component: dmd
  Assignee: nob...@puremagic.com
  Reporter: bugzi...@digitalmars.com

John Colvin reports:

struct S0(T)
{
int a;
auto ref immutable(int) getA() { return a; }
}

alias A = S0!int;

test.d(4): Error: function type pure nothrow @nogc return @safe
immutable(int)() has return but does not return any indirections

--


[Issue 17449] [DIP1000] crash due to covariant conversion of scope delegate to delegate

2018-03-25 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17449

--- Comment #13 from Walter Bright  ---
> Checking the disassembly for compiling with -dip1000 it doesn't generate the 
> closure that it is generating without the switch.

When I check it, it does generate the closure. Perhaps this is due to other
related PRs that exist on my machine but haven't been pulled yet.

--


[Issue 18652] hashOf example doesn't compile

2018-03-25 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18652

Walter Bright  changed:

   What|Removed |Added

 CC||bugzi...@digitalmars.com

--- Comment #1 from Walter Bright  ---
https://github.com/dlang/druntime/pull/2152

--


[Issue 18645] DMD segmentation fault

2018-03-25 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18645

Walter Bright  changed:

   What|Removed |Added

 CC||bugzi...@digitalmars.com

--- Comment #5 from Walter Bright  ---
Fixed by https://github.com/dlang/dmd/pull/8072

--


[Issue 18606] [REG2.072] "cannot append type const(T) to type T[]" in .dup

2018-03-25 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18606

Walter Bright  changed:

   What|Removed |Added

 CC||bugzi...@digitalmars.com
   Hardware|x86_64  |All
 OS|Linux   |All

--


[Issue 18489] [REG 2.073]Internal error: dmd/backend/cgcod.c 1688

2018-03-25 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18489

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

https://github.com/dlang/dmd/commit/65eed9c366c3a07f72152603cdb5f047e6d8948c
Fix issue 18489 - SROA w/ vector arguments

Since we can't easily slice the contents of a XMM register avoid slicing
symbols passed in such registers.

https://github.com/dlang/dmd/commit/a142adda22e2f7194f1fd85cbffc6e48624ef06f
Merge pull request #8057 from LemonBoy/b18489

Fix issue 18489 - SROA w/ vector arguments

--


[Issue 18489] [REG 2.073]Internal error: dmd/backend/cgcod.c 1688

2018-03-25 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18489

github-bugzi...@puremagic.com changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |FIXED

--


[Issue 18489] [REG 2.073]Internal error: dmd/backend/cgcod.c 1688

2018-03-25 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18489

Walter Bright  changed:

   What|Removed |Added

 CC||bugzi...@digitalmars.com

--- Comment #2 from Walter Bright  ---
https://github.com/dlang/dmd/pull/8057

--


[Issue 16189] Optimizer bug, with simple test case

2018-03-25 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16189

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

https://github.com/dlang/dmd/commit/27dd8373a06cafa7e6038bf853cf15ab9575518d
fix Issue 16189 - Optimizer bug, with simple test case

https://github.com/dlang/dmd/commit/88a963a8ce44d062d45c34677a697ff2bd1fe2fa
Merge pull request #8074 from WalterBright/fix16189

fix Issue 16189 - Optimizer bug, with simple test case

--


[Issue 16189] Optimizer bug, with simple test case

2018-03-25 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16189

github-bugzi...@puremagic.com changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |FIXED

--


[Issue 18657] std.range and std.algorithm can't handle refRange

2018-03-25 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18657

--- Comment #1 from ag0aep6g  ---
PR to fix the first three examples without touching RefRange:
https://github.com/dlang/phobos/pull/6346

--


[Issue 18197] [REG2.073] Internal error: backend\cgcod.c 1659

2018-03-25 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18197

bitter.ta...@gmx.com changed:

   What|Removed |Added

 CC||bitter.ta...@gmx.com

--- Comment #2 from bitter.ta...@gmx.com ---
DMD PR https://github.com/dlang/dmd/pull/8082

--


[Issue 16107] [ICE] - Internal error: backend/cgcod.c 2297

2018-03-25 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16107

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

https://github.com/dlang/dmd/commit/6c42ce082744e721bba802e5dae96dc0ed6c598f
fix Issue 16107 - [ICE] - Internal error: backend/cgcod.c 2297

https://github.com/dlang/dmd/commit/7d79100827427ce6fecc33a533999c7d93f857b6
Merge pull request #8078 from WalterBright/fix16107

fix Issue 16107 - [ICE] - Internal error: backend/cgcod.c 2297

--


[Issue 16107] [ICE] - Internal error: backend/cgcod.c 2297

2018-03-25 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16107

github-bugzi...@puremagic.com changed:

   What|Removed |Added

 Status|REOPENED|RESOLVED
 Resolution|--- |FIXED

--


[Issue 18660] getSymbolsByUDA stops after encountering a function

2018-03-25 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18660

--- Comment #6 from Seb  ---
> it's resolved in stable.

https://github.com/dlang/phobos/pull/6342

Also note that DMD nightlies are currently broken and haven't been built since
the end of February (in case you tried this with run.dlang.io)
In any case I hope that 2.079.1 will be released soon.

--


[Issue 18598] cyclic constructor calls have undefined behavior but are accepted in @safe code

2018-03-25 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18598

--- Comment #4 from ag0aep6g  ---
(In reply to Walter Bright from comment #3)
> I'm open to advice on what to do about it.

I'm by no means an expert here, but don't we have a guaranteed guard page
beyond the stack? If we have, stack overflow is guaranteed to fail with a
segfault, as long as the access doesn't jump over guard page (cf. issue 17566).

The situation is very similar to null dereferences then. A null dereference
also hits a guard page, as long as the offset from null isn't too large (cf.
issue 5176).

In both cases, the compiler has to detect offsets that are so large that they
would jump over the guard page, and then it has to inject code that makes an
earlier access to trigger the segfault. If I got the term right, for the stack
that's called "stack probing".

--


[Issue 16539] std.getopt should invoke callbacks in the order given on the command line

2018-03-25 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16539

--- Comment #3 from hst...@quickfur.ath.cx ---
Andrei has proposed adding std.getopt.config.commandLineOrder, which must be
the first argument in the list, to switch to this behaviour.

Cf. https://forum.dlang.org/post/p96fmv$20m7$1...@digitalmars.com

--


[Issue 16539] std.getopt should invoke callbacks in the order given on the command line

2018-03-25 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16539

hst...@quickfur.ath.cx changed:

   What|Removed |Added

 CC||hst...@quickfur.ath.cx

--


[Issue 18660] getSymbolsByUDA stops after encountering a function

2018-03-25 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18660

Basile B.  changed:

   What|Removed |Added

 Status|REOPENED|RESOLVED
 Resolution|--- |DUPLICATE

--- Comment #5 from Basile B.  ---
it's resolved in stable.

*** This issue has been marked as a duplicate of issue 18624 ***

--


[Issue 18624] getSymbolsByUDA produces wrong result if one of the symbols having the UDA is a function

2018-03-25 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18624

--- Comment #5 from Basile B.  ---
*** Issue 18660 has been marked as a duplicate of this issue. ***

--


[Issue 18660] getSymbolsByUDA stops after encountering a function

2018-03-25 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18660

--- Comment #4 from Basile B.  ---
as a proof, log for
https://github.com/dlang/phobos/pull/6341#partial-pull-merging:

https://auto-tester.puremagic.com/show-run.ghtml?projectid=1=3091204=true

--


[Issue 18660] getSymbolsByUDA stops after encountering a function

2018-03-25 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18660

Basile B.  changed:

   What|Removed |Added

 Status|RESOLVED|REOPENED
 Resolution|DUPLICATE   |---

--- Comment #3 from Basile B.  ---
i had tested with DMD ~master. So it's no yet fixed.

--


[Issue 18624] getSymbolsByUDA produces wrong result if one of the symbols having the UDA is a function

2018-03-25 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18624

Simen Kjaeraas  changed:

   What|Removed |Added

 CC||b2.t...@gmx.com

--- Comment #4 from Simen Kjaeraas  ---
*** Issue 18660 has been marked as a duplicate of this issue. ***

--


[Issue 18660] getSymbolsByUDA stops after encountering a function

2018-03-25 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18660

Simen Kjaeraas  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||simen.kja...@gmail.com
 Resolution|--- |DUPLICATE

--- Comment #2 from Simen Kjaeraas  ---


*** This issue has been marked as a duplicate of issue 18624 ***

--


[Issue 18660] getSymbolsByUDA stops after encountering a function

2018-03-25 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18660

Seb  changed:

   What|Removed |Added

 CC||greensunn...@gmail.com
   Severity|normal  |regression

--- Comment #1 from Seb  ---
That's a regression. It used to work until 2.079:

https://run.dlang.io/is/wqC9ZT (the all compiler features hasn't been updated
to 2.079 yet)

--


[Issue 18660] New: getSymbolsByUDA stops after encountering a function

2018-03-25 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18660

  Issue ID: 18660
   Summary: getSymbolsByUDA stops after encountering a function
   Product: D
   Version: D2
  Hardware: All
OS: All
Status: NEW
  Severity: normal
  Priority: P1
 Component: phobos
  Assignee: nob...@puremagic.com
  Reporter: b2.t...@gmx.com

test case:

```
unittest
{
import std.traits;
struct UDA {}

static struct Foo
{
static @UDA bool b;
void brickWall(){}
static @UDA bool c;
}

static assert(getSymbolsByUDA!(Foo, UDA).stringof == "tuple(b, c)");
}
```

comment the `brickWall` declaration then the assertion is okay.

--


[Issue 18461] codegen bug - OPbt expressions and assignments to ambiguous symbols

2018-03-25 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18461

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

https://github.com/dlang/dmd/commit/85251fa4bc1907f5ecee1106f2cca9cb1f023d11
fix Issue 18461 - codegen bug - OPbt expressions and assignments to ambiguous
symbols

https://github.com/dlang/dmd/commit/74226cfab38a6e32f78a877af4a2a89687aac348
Merge pull request #8065 from WalterBright/fix18461

fix Issue 18461 - codegen bug - OPbt expressions and assignments to a…
merged-on-behalf-of: Iain Buclaw 

--


[Issue 16107] [ICE] - Internal error: backend/cgcod.c 2297

2018-03-25 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16107

--- Comment #12 from Walter Bright  ---
https://github.com/dlang/dmd/pull/8078

--


[Issue 16107] [ICE] - Internal error: backend/cgcod.c 2297

2018-03-25 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16107

Walter Bright  changed:

   What|Removed |Added

   Hardware|x86_64  |All
 OS|Linux   |All

--


[Issue 17942] Enums are evaluated differently in global scope

2018-03-25 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17942

--- Comment #2 from Walter Bright  ---
https://github.com/dlang/dmd/pull/8077

--


[Issue 16107] [ICE] - Internal error: backend/cgcod.c 2297

2018-03-25 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16107

Seb  changed:

   What|Removed |Added

 CC||greensunn...@gmail.com

--- Comment #11 from Seb  ---
> Seb, do you confirm that run.dlang.io adds -g ?

Yes, -g is always added except if you just use -c

https://github.com/dlang-tour/core-exec/blob/master/entrypoint.sh

So the failure is still there:

https://run.dlang.io/is/8NVvW1

All compilers (called dreg) is a different image, but again omits -g only for
-g:

https://github.com/dlang-tour/core-dreg/blob/master/entrypoint.sh

--


[Issue 16107] [ICE] - Internal error: backend/cgcod.c 2297

2018-03-25 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16107

Basile B.  changed:

   What|Removed |Added

 CC||greeen...@gmail.com

--- Comment #10 from Basile B.  ---
Still reproducible here too. 

I think that it works online because -g is added to the switches so that the
object can be disasm and displayed. You can try on your machines with -g an
you'll see that the ICE doesn't appear.

Seb, do you confirm that run.dlang.io adds -g ?

--