[Issue 22721] importC: some gnu builtins are rejected

2022-07-09 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=22721

--- Comment #10 from Dlang Bot  ---
dlang/dmd pull request #14281 "[project] Merge druntime into the dmd
repository" was merged into master:

- f9a44c3a3cb47c5604db1a34b821a3b0e679b8b8 by Walter Bright:
  fix Issue 22721 - importC: some gnu builtins are rejected

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

--


[Issue 22735] __builtins.di does not implement __builtin_bswap64 correctly

2022-07-09 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=22735

--- Comment #3 from Dlang Bot  ---
dlang/dmd pull request #14281 "[project] Merge druntime into the dmd
repository" was merged into master:

- 02e8df4436109264143ee56bbe77dc3a58ab33ba by Walter Bright:
  fix Issue 22735 - __builtins.di does not implement __builtin_bswap64
correctly

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

--


[Issue 22689] kFreeBSD bindings broken after switch to CRuntime_Glibc

2022-07-09 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=22689

--- Comment #28 from Dlang Bot  ---
dlang/dmd pull request #14281 "[project] Merge druntime into the dmd
repository" was merged into master:

- f32d47748fb5ea1236b0a35c0f6ed1bcda5559db by Iain Buclaw:
  Issue 22689: core.sys.posix.sys.ioctl: Separate OS-specific types and flags
from C runtime functions

- a0ad8c42c15942faeeafb016e81a360113ae1b6b by Iain Buclaw:
  Issue 22689: core.sys.posix.ucontext: Separate OS-specific types from C
runtime functions

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

--


[Issue 22689] kFreeBSD bindings broken after switch to CRuntime_Glibc

2022-07-09 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=22689

--- Comment #27 from Dlang Bot  ---
@ibuclaw updated dlang/dmd pull request #14281 "[project] Merge druntime into
the dmd repository" mentioning this issue:

- Issue 22689: core.sys.posix.sys.ioctl: Separate OS-specific types and flags
from C runtime functions

- Issue 22689: core.sys.posix.ucontext: Separate OS-specific types from C
runtime functions

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

--


[Issue 23234] Delegate literal with inferred return value that requires following alias-this uses class cast instead.

2022-07-09 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23234

--- Comment #3 from mhh  ---
I think I have a patch for this

--


[Issue 23172] [REG2.100] Wrong cast inserted for ternary operator and non-int enums

2022-07-09 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23172

--- Comment #5 from Dlang Bot  ---
dlang/dmd pull request #14280 "merge stable" was merged into master:

- 10f612d3bce5b560ccef7098a089df4ceeb2c006 by Boris Carvajal:
  Fix Issue 23172 - [REG2.100] Wrong cast inserted for ternary operator and
non-int enums

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

--


[Issue 23166] seg fault when compiling with -inline

2022-07-09 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23166

--- Comment #4 from Dlang Bot  ---
dlang/dmd pull request #14280 "merge stable" was merged into master:

- 26e08f01d33215e1ae326fda530fb4a7fd9e7d6d by Walter Bright:
  fix Issue 23166 - seg fault when compiling with -inline

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

--


[Issue 23177] ModuleInfo is not exported on Windows

2022-07-09 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23177

Dlang Bot  changed:

   What|Removed |Added

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

--- Comment #8 from Dlang Bot  ---
dlang/dmd pull request #14280 "merge stable" was merged into master:

- 2aabe864da7c95ea8eb8abbca7c4f0b1dcfe55ae by richard andrew cattermole:
  Fix Issue 23177 - ModuleInfo is not exported on Windows

- 4ee3ac43f5235d3798c0c0cd9f317f5e1aa07ce4 by Martin Kinkelin:
  Revert "Fix Issue 23177 - ModuleInfo is not exported on Windows"

  This reverts commit 2aabe864da7c95ea8eb8abbca7c4f0b1dcfe55ae.

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

--


[Issue 23148] Missing invariant symbol with static library when template function declares struct with destructor and invariant that instantiates template with lambda, also main has a lambda

2022-07-09 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23148

--- Comment #3 from Dlang Bot  ---
dlang/dmd pull request #14280 "merge stable" was merged into master:

- 5c41c29b085f7a55a2d20381565c8d1d25b92c2b by Mathis Beer:
  Fix issue 23148, 21723: Generate invariant id on the basis of location rather
than counter.
  This makes __invariant more resilient to template order issues.

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

--


[Issue 23120] dmd illegal instruction throw expression

2022-07-09 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23120

--- Comment #3 from Dlang Bot  ---
dlang/dmd pull request #14280 "merge stable" was merged into master:

- cdd3e2ae54798148a2e0130e4bd01300ccf4fe86 by RazvanN7:
  Fix Issue 23120 - dmd illegal instruction throw expression

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

--


[Issue 21723] Linker error: two module static library, main compiled inline, invariant that defines a function, type alias, and an alias lambda

2022-07-09 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=21723

--- Comment #4 from Dlang Bot  ---
dlang/dmd pull request #14280 "merge stable" was merged into master:

- 5c41c29b085f7a55a2d20381565c8d1d25b92c2b by Mathis Beer:
  Fix issue 23148, 21723: Generate invariant id on the basis of location rather
than counter.
  This makes __invariant more resilient to template order issues.

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

--


[Issue 23170] Array literal passed to map in lambda, then returned from nested function, is memory corrupted

2022-07-09 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23170

--- Comment #10 from Dlang Bot  ---
dlang/dmd pull request #14280 "merge stable" was merged into master:

- 954e5b6394a2a5e47cabf9e4ae13a5f3815db71b by Dennis:
  Fix Issue 23170 - Array literal passed to map in lambda, then returned from
nested function, is memory corrupted (#14193)

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

--


[Issue 21443] scope (failure) with a return breaks safety

2022-07-09 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=21443

--- Comment #4 from Dlang Bot  ---
dlang/dmd pull request #14280 "merge stable" was merged into master:

- 2c336dfa825c481f0a32f495ce26232e45d820a4 by RazvanN7:
  Fix Issue 21443 - scope (failure) with a return breaks safety

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

--


[Issue 23181] [REG 2.099] AssertError@src/dmd/e2ir.d(6094): Trying reference _d_arraysetctor

2022-07-09 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23181

--- Comment #5 from Dlang Bot  ---
dlang/dmd pull request #14280 "merge stable" was merged into master:

- 84ee8c96ec85782ef33e6ee25aaa7005bf477580 by Iain Buclaw:
  fix Issue 23181 - [REG 2.099] AssertError@src/dmd/e2ir.d(6094): Trying
reference _d_arraysetctor

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

--


[Issue 23082] stringof of template alias overloaded with function accessed by trait: segfault.

2022-07-09 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23082

--- Comment #4 from Dlang Bot  ---
dlang/dmd pull request #14280 "merge stable" was merged into master:

- cf80ca9d4b4e99db30d2644706ecbddc8f79cd49 by Razvan Nitu:
  Fix Issue 23082 - stringof of template alias overloaded with function
accessed by trait: segfault. (#14149)

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

--


[Issue 23102] pinholeopt, "Conditional jump or move depends on uninitialised value(s)"

2022-07-09 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23102

--- Comment #9 from Dlang Bot  ---
dlang/dmd pull request #14280 "merge stable" was merged into master:

- c3bd914c2af2a4b66ee433e634370cf91c427f9c by Dennis Korpel:
  Fix issue 23102 - pinholeopt, "Conditional jump or move depends on
uninitialised value(s)"

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

--


[Issue 23100] empty array literal passed to scope param not 'falsey' anymore

2022-07-09 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23100

--- Comment #3 from Dlang Bot  ---
dlang/dmd pull request #14280 "merge stable" was merged into master:

- 8ef32fa8af53bc709c1cbdeb1fbb47444da94e2b by Dennis:
  Fix issue 23100 - empty array literal passed to scope param not 'falsey'
anymore (#14105)

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

--


[Issue 23114] Can't use noreturn operand in arithmetic expression

2022-07-09 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23114

--- Comment #5 from Dlang Bot  ---
dlang/dmd pull request #14280 "merge stable" was merged into master:

- dbe0600f853466992fe8f3c3f684f520f6a15883 by mhh:
  Fix Issue 23114 - Make noreturn conversions work

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

--


[Issue 20143] ICE in optimizer on real 0/0 returned as double

2022-07-09 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=20143

--- Comment #6 from Dlang Bot  ---
dlang/dmd pull request #14280 "merge stable" was merged into master:

- 6d590f4c88d7ada0743e5bdb4223a7d044924322 by mhh:
  Fix Issue 20143 - Backend constant folding did not support division by real.

  This involved simply adding the correct case to the grand olde switch
statement that does the evalu8tion

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

--


[Issue 23132] "cannot access frame pointer" comparing two ranges for equality from v2.099.0

2022-07-09 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23132

--- Comment #3 from Dlang Bot  ---
dlang/phobos pull request #8503 "merge stable" was merged into master:

- 9ac9d359acf936c7168a6467321d5e4c358a8c9a by Tomáš Chaloupka:
  Fix 23132 - Avoid ranges copy when compared for equality

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

--


[Issue 23177] ModuleInfo is not exported on Windows

2022-07-09 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23177

--- Comment #7 from Dlang Bot  ---
@ibuclaw created dlang/dmd pull request #14280 "merge stable" fixing this
issue:

- Fix Issue 23177 - ModuleInfo is not exported on Windows

- Revert "Fix Issue 23177 - ModuleInfo is not exported on Windows"

  This reverts commit 2aabe864da7c95ea8eb8abbca7c4f0b1dcfe55ae.

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

--


[Issue 23235] [DIP1000] Inconsistent error messages for typesafe variadic parameter

2022-07-09 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23235

Paul Backus  changed:

   What|Removed |Added

   Keywords||diagnostic

--


[Issue 23235] New: [DIP1000] Inconsistent error messages for typesafe variadic parameter

2022-07-09 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23235

  Issue ID: 23235
   Summary: [DIP1000] Inconsistent error messages for typesafe
variadic parameter
   Product: D
   Version: D2
  Hardware: All
OS: All
Status: NEW
  Severity: normal
  Priority: P1
 Component: dmd
  Assignee: nob...@puremagic.com
  Reporter: snarwin+bugzi...@gmail.com

When attempting to compile the following example program with -preview=dip1000:

---
import std;
@safe:
void fun1(string[] foo...) {
writeln(foo);
}

void fun2(string[] bar...) {
fun1(bar);
}

void main() {
fun2("foo", "bar");
}
---

DMD 2.100.0 produces the following error messages:

---
bug.d(4): Error: scope variable `foo` assigned to non-scope parameter
`_param_0` calling std.stdio.writeln!(string[]).writeln
bug.d(8): Error: scope variable `bar` assigned to non-scope parameter `foo`
calling bug.fun1
---

In the first message, foo is called a "scope variable"; in the second, a
"non-scope parameter". Both cannot be true.

--


[Issue 23164] [REG 2.097] Infinite loop on assertion failure + DMD moves struct with copy constructor

2022-07-09 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23164

Iain Buclaw  changed:

   What|Removed |Added

 CC||ibuc...@gdcproject.org

--- Comment #5 from Iain Buclaw  ---
(In reply to Mathias LANG from comment #0)
> The following code shows 2 assertions failures in v2.096.1, an infinite loop
> on v2.097.0:
> ```
--snip--
> ~this ()
> {
> assert(this.ptr is &this);
> }
--snip--
> ```
> 
> The original test was to see whether or not DMD would move a struct with a
> copy constructor. The above code compiles and runs fine with LDC & GDC, but
> asserts with DMD.
To explain GDC behaviour. *Because* there is a destructor (or postblit, copy
constructor, or anything that would other make the struct non-trivially
copyable) then the type is *always* *implicitly* passed and returned by
invisible reference.

The right reduction would be this:
```
struct std_string
{
std_string* ptr;
ulong[3] data;

this (ulong data)
{
this.data[] = data;
this.ptr = &this;
}

~this ()
{
}

// GDC and LDC forces 'auto ref' to be 'ref', even when the
// front-end decides to drop the 'ref' from the signature.
ref std_string opAssign()(const auto ref std_string rhs)
{
assert(rhs.ptr is &rhs);
return this;
}
}

void main ()
{
std_string tmp;
tmp = std_string(42);
}
```

--