[Issue 19819] __FILE__ might emit personally identifiable information in release executable

2023-04-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19819

--- Comment #7 from Lionello Lunesu  ---
I don't agree. Golang has added `-trimpath` to address the same issue:
https://go.dev/src/cmd/go/testdata/script/build_trimpath.txt

--


[Issue 23844] chain(only) doesn't support immutable structs

2023-04-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23844

Dlang Bot  changed:

   What|Removed |Added

   Keywords||pull

--- Comment #1 from Dlang Bot  ---
@FeepingCreature updated dlang/phobos pull request #8736 "Fix issue 23844:
Support ranges with immutable fields (like `only` with `immutable struct`) in
`chain`." fixing this issue:

- Fix issue 23844: Support ranges with immutable fields (like `only` with
`immutable struct`) in `chain`.
  `only` is a range that may be *mutable*, but not *assignable*. `chain` falls
over here because it assumes it can make a struct with ranges, and reassign
them with new values, which isn't necessarily the case even if the ranges are
not `const`.
  Solved by creating a separate tuple of `Rebindable` ranges for this case.

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

--


[Issue 22785] joiner does not support range over immutable

2023-04-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=22785

Dlang Bot  changed:

   What|Removed |Added

   Keywords||pull

--- Comment #3 from Dlang Bot  ---
@FeepingCreature created dlang/phobos pull request #8737 "Fix issue 22785:
`joiner` should `Unqual` child ranges." fixing this issue:

- Fix issue 22785: `joiner` should `Unqual` child ranges.
  This allows use with `immutable T[][]` and similar.

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

--


[Issue 19780] `deprecated` is ignored on aliases of templates

2023-04-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19780

RazvanN  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||razvan.nitu1...@gmail.com
 Resolution|--- |WORKSFORME

--- Comment #1 from RazvanN  ---
This seems to have been fixed. I am now getting:

test.d(3): Deprecation: alias `test.MyTemplateAlias` is deprecated
test.d(4): Deprecation: alias `test.NoTemplateAlias` is deprecated

--


[Issue 3332] Mixin a constructor with a construct already present fails

2023-04-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=3332

RazvanN  changed:

   What|Removed |Added

 CC||yshu...@gmail.com

--- Comment #14 from RazvanN  ---
*** Issue 19795 has been marked as a duplicate of this issue. ***

--


[Issue 19795] Constructor from template mixin cannot be called when default constructor is disabled

2023-04-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19795

RazvanN  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||razvan.nitu1...@gmail.com
 Resolution|--- |DUPLICATE

--- Comment #1 from RazvanN  ---
This a duplicate of 3332

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

--


[Issue 20347] Initialization of globals not checked for @safe, round 2

2023-04-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=20347

Dennis  changed:

   What|Removed |Added

 CC||dkor...@live.nl

--- Comment #2 from Dennis  ---
Yes, this was fixed by https://github.com/dlang/dmd/pull/14483
I forgot to link the issue

--


[Issue 19819] __FILE__ might emit personally identifiable information in release executable

2023-04-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19819

RazvanN  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||razvan.nitu1...@gmail.com
 Resolution|--- |WONTFIX

--- Comment #6 from RazvanN  ---
I don't see anything actionable on the compiler part here. Perhaps this a job
for 3rd party tools.

--


[Issue 19816] adding import causes symbol lookup deperecation message in another module

2023-04-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19816

RazvanN  changed:

   What|Removed |Added

 CC||razvan.nitu1...@gmail.com

--- Comment #1 from RazvanN  ---
Is this issue still valid? I don't have access to a windows machine.

--


[Issue 19910] ImportVisitor example fails to parse random files

2023-04-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19910

RazvanN  changed:

   What|Removed |Added

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

--- Comment #2 from RazvanN  ---
This has been fixed by https://github.com/dlang/dmd/pull/15106. More
specifically:
https://github.com/dlang/dmd/pull/15106/files#diff-dbba1e589df96236acc395645a3108265c5884faa8eeac6eefb279ec7abd61daR110
.

--


[Issue 22785] joiner does not support range over immutable

2023-04-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=22785

--- Comment #2 from FeepingCreature  ---
The example was rubbish. How about this:

```
void main()
{
import std.algorithm : joiner, map;
import std.array : array;

static immutable struct S
{
int[] arr;
}

auto range = [S([3]), S([4, 5])];

assert(range.map!"a.arr".joiner.array == [3, 4, 5]);
}
```

--


[Issue 19918] UFCS doesn't work in typeid expressions for functions with alias template parameter

2023-04-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19918

RazvanN  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||razvan.nitu1...@gmail.com
 Resolution|--- |WORKSFORME

--- Comment #1 from RazvanN  ---
This seems to work now. I get a successful compilation with the provided test
case.

--


[Issue 20038] __DATE__ is in the wrong format for std.datetime.Date.from*

2023-04-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=20038

RazvanN  changed:

   What|Removed |Added

 CC||razvan.nitu1...@gmail.com
  Component|dmd |phobos

--- Comment #1 from RazvanN  ---
This is not a compiler issue, rather than a phobos one. std.datetime lacks the
functionality to transform a compiler provided date into an internal
representation.

--


[Issue 20062] Segfault on access to local func variable from element of dyn array of struct

2023-04-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=20062

RazvanN  changed:

   What|Removed |Added

 CC||razvan.nitu1...@gmail.com

--- Comment #2 from RazvanN  ---
It seems that the garbage collector lacks the information to properly set the
context pointer.

--


[Issue 20078] Multiple confusing error messages

2023-04-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=20078

RazvanN  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||razvan.nitu1...@gmail.com
 Resolution|--- |WORKSFORME

--- Comment #1 from RazvanN  ---
I now get:

test.d(3): Error: need `this` for `n` of type `int`
test.d(3):instantiated from here: `fun1!((a) => n)`
test.d(11):while evaluating `pragma(msg, this.__lambda2(0))`
test.d(3):while evaluating `pragma(msg, fun1!((a) => n))`
test.d(4): Error: need `this` for `n` of type `int`
test.d(4):instantiated from here: `fun2!((a) => n)`
test.d(17):while evaluating `pragma(msg, this.__lambda3(0))`
test.d(4):while evaluating `pragma(msg, fun2!((a) => n))`
test.d(5): Error: need `this` for `n` of type `int`
test.d(5):instantiated from here: `fun3!((a) => n)`
test.d(5):while evaluating `pragma(msg, fun3!((a) => n))`

So this seems to have been fixed.

--


[Issue 23844] New: chain(only) doesn't support immutable structs

2023-04-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23844

  Issue ID: 23844
   Summary: chain(only) doesn't support immutable structs
   Product: D
   Version: D2
  Hardware: x86_64
OS: Linux
Status: NEW
  Severity: minor
  Priority: P1
 Component: phobos
  Assignee: nob...@puremagic.com
  Reporter: default_357-l...@yahoo.de

Consider this code:

```
void main() {
import std.array : array;
import std.range : chain, only;

struct S
{
immutable int value;
}

auto range = chain(only(S(5)), only(S(6)));
assert(range.array == [S(5), S(6)]);
}
```

It errors with a flood of 

```
std/range/package.d(1172): Error: cannot modify struct instance
`result.__source_field_0` of type `OnlyResult!(S)` because it contains `const`
or `immutable` members
```

If I remove `immutable`, it works.

--


[Issue 20090] Header generation wrongfully outputs constructor bodies

2023-04-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=20090

Dlang Bot  changed:

   What|Removed |Added

   Keywords||pull

--- Comment #3 from Dlang Bot  ---
@RazvanN7 created dlang/dmd pull request #15115 "Fix Issue 20090 - Header
generation wrongfully outputs constructor bodies" fixing this issue:

- Fix Issue 20090 - Header generation wrongfully outputs constructor bodies

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

--


[Issue 20090] Header generation wrongfully outputs constructor bodies

2023-04-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=20090

RazvanN  changed:

   What|Removed |Added

   Severity|enhancement |regression

--- Comment #2 from RazvanN  ---
Regression introduced by: https://github.com/dlang/dmd/pull/6423

--


[Issue 20167] Issue warning when result discarded from strong pure function?

2023-04-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=20167

RazvanN  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||razvan.nitu1...@gmail.com
 Resolution|--- |WORKSFORME

--- Comment #4 from RazvanN  ---
> I did this same test, but I didn't have `nothrow`.
Why wasn't `nothrow` inferred for this trivial function where the source is as
plain as day to the compiler?

We have been discussing about this for a long time, but I don't know if
attribute inference is going to be a thing for normal functions. That could be
filed as a different issue.

However, this bug report, as Dennis pointed out has nothing actionable.

--


[Issue 20171] [REG 2.086.0] null this in invariant after destructor called

2023-04-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=20171

RazvanN  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||razvan.nitu1...@gmail.com
 Resolution|--- |WORKSFORME

--- Comment #2 from RazvanN  ---
I cannot reproduce the segfault.

Compiling and running both the original code snippet and the reduced one result
in successful compilation and run.

--


[Issue 20179] 'goto' skips over declaration triggered for unused variable

2023-04-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=20179

RazvanN  changed:

   What|Removed |Added

 CC||razvan.nitu1...@gmail.com

--- Comment #1 from RazvanN  ---
The compiler does not do any dataflow analysis so it cannot know whether `str`
is used or not below L1. However, `str` could be used, therefore the compiler
is conservative in this case and errors. In most cases, I think that the error
could actually prevent wrong code.

Anyway, if last use analysis is implemented for move constructors/perfect
fordwarding maybe this will have a chance of being fixed, however, chances are
slim.

--


[Issue 20187] alias this bypasses truncating conversion warning

2023-04-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=20187

RazvanN  changed:

   What|Removed |Added

 Status|RESOLVED|REOPENED
 Resolution|WORKSFORME  |---

--- Comment #2 from RazvanN  ---
Ah, forgot to add -unittest. Sorry, I can still reproduce this.

--


[Issue 20187] alias this bypasses truncating conversion warning

2023-04-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=20187

RazvanN  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |WORKSFORME

--- Comment #1 from RazvanN  ---
I get no warning whatsoever.

--


[Issue 20190] Deprecation not triggered on templates

2023-04-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=20190

RazvanN  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||razvan.nitu1...@gmail.com
 Resolution|--- |WORKSFORME

--- Comment #2 from RazvanN  ---
I now get:

test.d(5): Deprecation: template `test.Const(T)` is deprecated

So this seems to have been fixed.

--


[Issue 20237] with gagged errors from is(typeof()), compiler forgets that it failed to compile a method

2023-04-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=20237

RazvanN  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||razvan.nitu1...@gmail.com
 Resolution|--- |DUPLICATE

--- Comment #1 from RazvanN  ---
This is a dupe of 15459.

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

--


[Issue 15459] [REG2.065.0] stdin.byLine.each!(map!somefunc) compiles, fails to link with ld

2023-04-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15459

RazvanN  changed:

   What|Removed |Added

 CC||default_357-l...@yahoo.de

--- Comment #17 from RazvanN  ---
*** Issue 20237 has been marked as a duplicate of this issue. ***

--


[Issue 20268] anonymous function parameter mismatch errors don't include parameters

2023-04-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=20268

Dlang Bot  changed:

   What|Removed |Added

   Keywords||pull

--- Comment #1 from Dlang Bot  ---
@RazvanN7 created dlang/dmd pull request #15113 "Fix Issue 20268 - anonymous
function parameter mismatch errors don't …" fixing this issue:

- Fix Issue 20268 - anonymous function parameter mismatch errors don't include
parameters

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

--


[Issue 20369] shadowed variable in foreach loop always considered "foreach variable"

2023-04-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=20369

RazvanN  changed:

   What|Removed |Added

   Keywords||trivial

--


[Issue 22786] maxElement et al does not support range over immutable

2023-04-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=22786

--- Comment #2 from Dlang Bot  ---
@FeepingCreature created dlang/phobos pull request #8734 "Fix issue 22786
(immutable element in maxElement) by always using Rebindable." fixing this
issue:

- Fix issue 22786 (immutable element in maxElement) by always using Rebindable.

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

--


[Issue 20347] Initialization of globals not checked for @safe, round 2

2023-04-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=20347

RazvanN  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||razvan.nitu1...@gmail.com
 Resolution|--- |WORKSFORME

--- Comment #1 from RazvanN  ---
Both cases seem to have been fixed.

For 1) I get:

test.d(2): Error: cast from `const(int)*` to `int*` not allowed in safe code

For 2) I get:

test.d(4): Error: `@safe` variable `y` cannot be initialized by calling
`@system` function `f`

Closing as WORKSFORME.

--


[Issue 20307] Difference for `deprecated alias a = b` vs. `deprecated alias b a`

2023-04-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=20307

RazvanN  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||razvan.nitu1...@gmail.com
 Resolution|--- |WORKSFORME

--- Comment #3 from RazvanN  ---
This seems to have been fixed. I cannot reproduce the deprecation messages. I
get a graceful compilation. Closing as WORKSFORME. Please reopen if I am
missing something.

--


[Issue 18527] lldb: `frame variable` works with ldc2, not with dmd

2023-04-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18527

Sönke Ludwig  changed:

   What|Removed |Added

 CC|slud...@outerproduct.org|

--


[Issue 17883] Error: undefined identifier: Static if bodies depend on order of declarations

2023-04-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17883

Sönke Ludwig  changed:

   What|Removed |Added

 CC||slud...@outerproduct.org

--


[Issue 18527] lldb: `frame variable` works with ldc2, not with dmd

2023-04-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18527

Sönke Ludwig  changed:

   What|Removed |Added

 CC||slud...@outerproduct.org

--


[Issue 21076] Tracker for issues discussed at online D conf July 2020

2023-04-18 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=21076

RazvanN  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |REMIND

--