[Issue 24243] New: Can't format chain(filter, filter)

2023-11-14 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=24243

  Issue ID: 24243
   Summary: Can't format chain(filter, filter)
   Product: D
   Version: D2
  Hardware: x86_64
OS: Linux
Status: NEW
  Severity: regression
  Priority: P1
 Component: phobos
  Assignee: nob...@puremagic.com
  Reporter: default_357-l...@yahoo.de

module test;

import std.algorithm;
import std.range;
import std.stdio;

void main() {
writefln!"%s"(chain([2].filter!"a", [3].filter!"a"));
}

And then

phobos/std/algorithm/iteration.d(1396): Error: Attempting to fetch the front of
an empty filter.
phobos/std/range/package.d(1094):called from here:
`this.__source_field_0.front()`
phobos/std/range/package.d(1094):called from here:
`fixRef(this.__source_field_0.front())`
phobos/std/format/internal/write.d(1500):called from here:
`val.front()`
phobos/std/format/internal/write.d(1500):called from here:
`formatElement(w, val.front(), f)`
phobos/std/format/internal/write.d(2523):called from here:
`formatRange(w, val, f)`
phobos/std/format/write.d(1239):called from here: `formatValueImpl(w,
val, f)`
phobos/std/format/write.d(632):called from here: `formatValue(w,
__param_2, spec)`
phobos/std/format/package.d(741):called from here:
`formattedWrite(NoOpSink(), "%s", Result(FilterResult(null, false),
FilterResult(null, false), 0LU))`
phobos/std/format/package.d(748):called from here: `(*function () pure
nothrow @safe => null)()`
phobos/std/stdio.d(4473): Error: template instance
`std.format.checkFormatException!("%s", Result)` error instantiating
test.d(8):instantiated from here: `writefln!("%s", Result)`

--


[Issue 23943] `execute` causes interrupted system call inside LLDB

2023-11-14 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23943

Jacob Carlborg  changed:

   What|Removed |Added

   Severity|enhancement |normal

--


[Issue 24244] New: -vcg-ast breaks on static foreach alias

2023-11-14 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=24244

  Issue ID: 24244
   Summary: -vcg-ast breaks on static foreach alias
   Product: D
   Version: D2
  Hardware: x86
OS: All
Status: NEW
  Severity: critical
  Priority: P1
 Component: dmd
  Assignee: nob...@puremagic.com
  Reporter: msnmanc...@hotmail.com

```d
alias thisMod = __traits(parent, {});
void main()
{
static foreach(mem; __traits(allMembers, thisMod))
{{
alias modMem = __traits(getMember, thisMod, mem);
}}
}
```

This is the minimal program for this error. Tested with both DMD and LDC

--


[Issue 24239] dlang.org tests on CircleCI run out of memory

2023-11-14 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=24239

--- Comment #3 from Dlang Bot  ---
dlang/dmd pull request #15799 "Issue 24239 - dlang.org tests on CircleCI run
out of memory" was merged into master:

- 6d9e93681479e23a21c103d29a6d63c17930ab9a by Tim Schendekehl:
  Issue 24239 - dlang.org tests on CircleCI run out of memory

  Add variable BUILD_JOBS to posix.mak, which allows to set the number of
  jobs for build.d. This will be used by a separate pull request for
  dlang.org to manually set it, because the automatically calculated
  number of CPU cores is too high.

https://github.com/dlang/dmd/pull/15799

--


[Issue 24245] New: ddoc interprets `$(...)` in backticks, as a macro

2023-11-14 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=24245

  Issue ID: 24245
   Summary: ddoc interprets `$(...)` in  backticks, as a macro
   Product: D
   Version: D2
  Hardware: All
OS: All
Status: NEW
  Severity: normal
  Priority: P3
 Component: dmd
  Assignee: nob...@puremagic.com
  Reporter: destructiona...@gmail.com

---
/// `$(thing)`
module test;
---

the $(thing) there will be expanded to an empty macro, despite being in an
inline code block. Inline code blocks should never apply macro expansion since
it indicates foreign language code.

--


[Issue 23972] class identity check is broken

2023-11-14 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23972

--- Comment #6 from Dlang Bot  ---
@dkorpel created dlang/dlang.org pull request #3726 "Fix 23972 - class identity
check is broken" fixing this issue:

- Fix 23972 - class identity check is broken

https://github.com/dlang/dlang.org/pull/3726

--


[Issue 23972] class identity check is broken

2023-11-14 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23972

Dlang Bot  changed:

   What|Removed |Added

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

--- Comment #7 from Dlang Bot  ---
dlang/dlang.org pull request #3726 "Fix 23972 - class identity check is broken"
was merged into master:

- 99530f59602022930f6c2e634f3809a03fd0c8b6 by Dennis Korpel:
  Fix 23972 - class identity check is broken

https://github.com/dlang/dlang.org/pull/3726

--


[Issue 23266] Dead else blocks are not considered unreachable

2023-11-14 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23266

Steven Schveighoffer  changed:

   What|Removed |Added

 CC||schvei...@gmail.com

--- Comment #3 from Steven Schveighoffer  ---
The unreachable code warning will be disabled in the next release of the
compiler.

https://github.com/dlang/dmd/pull/15568

I suggest we close this. WONTFIX? There's no MOOT status!

--


[Issue 23001] [REG 2.063] missing unreachable code warning with switch inside switch

2023-11-14 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23001

Steven Schveighoffer  changed:

   What|Removed |Added

 CC||schvei...@gmail.com

--- Comment #4 from Steven Schveighoffer  ---
The unreachable code warning is being retired.
https://github.com/dlang/dmd/pull/15568

Should we close this as WONTFIX?

--


[Issue 16201] When all paths inside a static if return/throw, the portion after static if should be as if "else" were used

2023-11-14 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16201

--- Comment #8 from Steven Schveighoffer  ---
The "unreachable" code warning has been removed.
https://github.com/dlang/dmd/pull/15568

Should this be closed?

--


[Issue 16176] Unreachable code not detected with -w

2023-11-14 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16176

Steven Schveighoffer  changed:

   What|Removed |Added

 CC||schvei...@gmail.com

--- Comment #2 from Steven Schveighoffer  ---
The unreachable code warning has been removed.

https://github.com/dlang/dmd/pull/15568

Should we close this?

--


[Issue 13575] Unreachable scope(failure) should be warned

2023-11-14 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13575

Steven Schveighoffer  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||schvei...@gmail.com
 Resolution|--- |INVALID

--- Comment #3 from Steven Schveighoffer  ---
You can no longer return from scope(failure)

--


[Issue 8052] Spurious warning when exiting out of a labeled Do-While

2023-11-14 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=8052

Steven Schveighoffer  changed:

   What|Removed |Added

 CC||schvei...@gmail.com

--- Comment #5 from Steven Schveighoffer  ---
We have removed the unreachable statement warning

https://github.com/dlang/dmd/pull/15568

I think this should be closed.

--


[Issue 22216] Incomplete/incorrect error message for mutability overloads

2023-11-14 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=22216

Dlang Bot  changed:

   What|Removed |Added

   Keywords||pull

--- Comment #1 from Dlang Bot  ---
@ntrel created dlang/dmd pull request #15814 "Show `TypeFunction.mod` in
overload candidates" fixing this issue:

- Show `TypeFunction.mod` in overload candidates

  Fix Issue 22216 - Incomplete/incorrect error message for mutability overloads

https://github.com/dlang/dmd/pull/15814

--


[Issue 23266] Dead else blocks are not considered unreachable

2023-11-14 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23266

FeepingCreature  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |WONTFIX

--- Comment #4 from FeepingCreature  ---
GOODEND

--


[Issue 24239] dlang.org tests on CircleCI run out of memory

2023-11-14 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=24239

Dlang Bot  changed:

   What|Removed |Added

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

--- Comment #4 from Dlang Bot  ---
dlang/dlang.org pull request #3724 "Fix issue 24239 - dlang.org tests on
CircleCI run out of memory" was merged into master:

- 43ca8489bdc23832782ef424a5f2cc27359fce83 by Tim Schendekehl:
  Fix issue 24239 - dlang.org tests on CircleCI run out of memory

  Manually set the number of jobs used by build.d on CircleCI, because
  the automatically calculated number of CPU cores is too high.

  This depends on https://github.com/dlang/dmd/pull/15799.

https://github.com/dlang/dlang.org/pull/3724

--


[Issue 24072] cast(__vector) array literal incorrectly triggers GC error

2023-11-14 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=24072

Dlang Bot  changed:

   What|Removed |Added

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

--- Comment #2 from Dlang Bot  ---
dlang/dmd pull request #15516 "Fix 24072 - cast(__vector) array literal
incorrectly triggers GC error" was merged into stable:

- 59a40525292b2d98095191675ed8289d4878eb42 by Dennis Korpel:
  Fix 24072 - cast(__vector) array literal incorrectly triggers GC error

https://github.com/dlang/dmd/pull/15516

--


[Issue 22216] Incomplete/incorrect error message for mutability overloads

2023-11-14 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=22216

Dlang Bot  changed:

   What|Removed |Added

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

--- Comment #2 from Dlang Bot  ---
dlang/dmd pull request #15814 "Show `TypeFunction.mod` in overload candidates"
was merged into master:

- d5842945d94c79eca1e842911a3e4837a8a49379 by Nick Treleaven:
  Show `TypeFunction.mod` in overload candidates

  Fix Issue 22216 - Incomplete/incorrect error message for mutability overloads

https://github.com/dlang/dmd/pull/15814

--


[Issue 24246] New: ICE: CTFE internal error

2023-11-14 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=24246

  Issue ID: 24246
   Summary: ICE: CTFE internal error
   Product: D
   Version: D2
  Hardware: x86
OS: Windows
Status: NEW
  Severity: enhancement
  Priority: P1
 Component: dmd
  Assignee: nob...@puremagic.com
  Reporter: andrey.zheri...@gmail.com

Created attachment 1901
  --> https://issues.dlang.org/attachment.cgi?id=1901&action=edit
Source code to reproduce the issue

Compile attached file with `dmd package.d`:

> c:\d\dmd.2.106.0-beta.1.windows\dmd2\windows\bin64\dmd.exe package.d
package.d(34): Error: CTFE internal error: literal `TextStyle`

> echo %errorlevel%
-1073741795


Errorcode is C01D

--