[Issue 22098] New: Spurious failure in runnable/test20855.d with -inline

2021-07-02 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=22098

  Issue ID: 22098
   Summary: Spurious failure in runnable/test20855.d with -inline
   Product: D
   Version: D2
  Hardware: All
OS: Mac OS X
Status: NEW
  Severity: normal
  Priority: P1
 Component: dmd
  Assignee: nob...@puremagic.com
  Reporter: moonlightsenti...@disroot.org

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

 ... runnable/test20855.d-fPIC (-O -inline -release)
==
Test 'runnable/test20855.d' failed. The logged output:
/Users/braddr/sandbox/at-client/pull-4884670-Darwin_64_64/dmd/generated/osx/release/64/dmd
-conf= -m64 -Irunnable  -fPIC  -odgenerated/runnable
-ofgenerated/runnable/test20855_0  runnable/test20855.d 
generated/runnable/test20855_0
a = 14337

/Users/braddr/sandbox/at-client/pull-4884670-Darwin_64_64/dmd/generated/osx/release/64/dmd
-conf= -m64 -Irunnable  -fPIC -O -odgenerated/runnable
-ofgenerated/runnable/test20855_1  runnable/test20855.d 
generated/runnable/test20855_1
a = 14337

/Users/braddr/sandbox/at-client/pull-4884670-Darwin_64_64/dmd/generated/osx/release/64/dmd
-conf= -m64 -Irunnable  -fPIC -inline -odgenerated/runnable
-ofgenerated/runnable/test20855_2  runnable/test20855.d 
generated/runnable/test20855_2
core.exception.AssertError@runnable/test20855.d(24): Assertion failure

??:? _d_assertp [0x103a4a82c]
??:? _Dmain [0x103a3d129]
a = 9087

==
Test 'runnable/test20855.d' failed: Expected rc == 0, but exited with rc == 1

--


[Issue 22054] Referencing a fwd-declared field results in many error messages

2021-07-02 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=22054

Dlang Bot  changed:

   What|Removed |Added

   Keywords||pull

--- Comment #2 from Dlang Bot  ---
@RazvanN7 created dlang/dmd pull request #12801 "Fix Issue 22054 - Referencing
a fwd-declared field results in many er" fixing this issue:

- Fix Issue 22054 - Referencing a fwd-declared field results in many error
messages

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

--


[Issue 9999] Integer literal 0 and 1 should prefer integer type in overload resolution

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

--- Comment #19 from Илья Ярошенко  ---
This bugs causes critical data bugs for various libraries such as
Algebraic/Variant types, JSON and other data libraries. Shame.

--


[Issue 9999] Integer literal 0 and 1 should prefer integer type in overload resolution

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

Dennis  changed:

   What|Removed |Added

 CC||ilyayaroshe...@gmail.com

--- Comment #18 from Dennis  ---
*** Issue 22097 has been marked as a duplicate of this issue. ***

--


[Issue 22097] 1 should be promoted to long, instead of bool

2021-07-02 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=22097

Dennis  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||dkor...@live.nl
 Resolution|--- |DUPLICATE

--- Comment #1 from Dennis  ---


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

--


[Issue 22097] New: 1 should be promoted to long, instead of bool

2021-07-02 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=22097

  Issue ID: 22097
   Summary: 1 should be promoted to long, instead of bool
   Product: D
   Version: D2
  Hardware: All
OS: All
Status: NEW
  Severity: blocker
  Priority: P1
 Component: dmd
  Assignee: nob...@puremagic.com
  Reporter: ilyayaroshe...@gmail.com

current code fails at runtime. 1 should be promoted to long, instead of bool

static struct S
{
this(bool b)
{
assert(0);
}

this(long l)
{

}
}
auto ss = S(1);

--