Thread overview
[Issue 23114] Can't use noreturn operand in arithmetic expression
May 17, 2022
Dlang Bot
May 17, 2022
Walter Bright
May 27, 2022
Dlang Bot
May 27, 2022
Dlang Bot
Jul 09, 2022
Dlang Bot
May 17, 2022
https://issues.dlang.org/show_bug.cgi?id=23114

Dlang Bot <dlang-bot@dlang.rocks> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull

--- Comment #1 from Dlang Bot <dlang-bot@dlang.rocks> ---
@maxhaton created dlang/dmd pull request #14134 "Fix Issue 23114 - Make noreturn conversions work" fixing this issue:

- Fix Issue 23114 - Make noreturn conversions work

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

--
May 17, 2022
https://issues.dlang.org/show_bug.cgi?id=23114

Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla@digitalmars.com

--- Comment #2 from Walter Bright <bugzilla@digitalmars.com> ---
This has nothing in particular to do with throwing expressions. The following fails for the same reason:

---
noreturn foo();

int test()
{
    return 1 + foo();
}
---

--
May 27, 2022
https://issues.dlang.org/show_bug.cgi?id=23114

--- Comment #3 from Dlang Bot <dlang-bot@dlang.rocks> ---
@maxhaton updated dlang/dmd pull request #14091 "Fix Issue 23088 - This bug is a symptom of a bad error message." fixing this issue:

- Fix Issue 23114 - Make noreturn conversions work

  This meant adding the correct implicit conversions to the table in
  impcnvtab.d

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

--
May 27, 2022
https://issues.dlang.org/show_bug.cgi?id=23114

Dlang Bot <dlang-bot@dlang.rocks> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #4 from Dlang Bot <dlang-bot@dlang.rocks> ---
dlang/dmd pull request #14134 "Fix Issue 23114 - Make noreturn conversions work" was merged into stable:

- 8d9c0a33cecc5ff281659962a723f18a7bfd168f by mhh:
  Fix Issue 23114 - Make noreturn conversions work

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

--
July 09, 2022
https://issues.dlang.org/show_bug.cgi?id=23114

--- Comment #5 from Dlang Bot <dlang-bot@dlang.rocks> ---
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

--