#1 from elpenguin...@gmail.com ---
I don't think it's accurate to do that for all noreturn scopes. Consider:
```
noreturn v(int a) {
scope(exit) a++;
{
scope(exit) a++;
}
throw new Exception("Exception");
}
```
In this code, both scope guards should be executed.
--
https://issues.dlang.org/show_bug.cgi?id=24466
Issue ID: 24466
Summary: `scope(exit)` should not be allowed in the main scope
of `noreturn` functions
Product: D
Version: D2
Hardware: All
OS: All
https://issues.dlang.org/show_bug.cgi?id=24349
--- Comment #5 from Nick Treleaven ---
Filed: https://github.com/dlang/ddox/issues/249
--
https://issues.dlang.org/show_bug.cgi?id=24349
--- Comment #4 from Nick Treleaven ---
> alias noreturn = Nn;
Ddoc generates (more) correct declaration:
> alias noreturn = noreturn;
https://dlang.org/phobos-prerelease/object.html#.noreturn
So the problem seems to be with Ddox, perhap
https://issues.dlang.org/show_bug.cgi?id=24349
--- Comment #3 from Jim Balter ---
I guess I should have been more explicit. It isn't just that the link is
missing ... this is also wrong:
alias noreturn = Nn;
I doubt that the fix for the link fixed this ... is there some way to look
|--- |FIXED
--- Comment #2 from Dlang Bot ---
dlang/dmd pull request #16077 "Fix Bugzilla 24349 - object noreturn link is
missing" was merged into master:
- 4232aeddcc725107bef1793496515e6196aaa623 by Nick Treleaven:
Fix Bugzilla 24349 - object noreturn link is missing
https://
|
CC||n...@geany.org
Component|dmd |druntime
Summary|[Alias noreturn]|object noreturn link is
|documentation is bolluxed |missing
--
created dlang/dmd pull request #16077 "Fix Bugzilla 24349 - object
noreturn link is missing" fixing this issue:
- Fix Bugzilla 24349 - object noreturn link is missing
https://github.com/dlang/dmd/pull/16077
--
https://issues.dlang.org/show_bug.cgi?id=24349
Issue ID: 24349
Summary: [Alias noreturn] documentation is bolluxed
Product: D
Version: D2
Hardware: All
URL: http://dlang.org/library/druntime/src/object.html
OS
https://issues.dlang.org/show_bug.cgi?id=23379
Basile-z changed:
What|Removed |Added
Status|REOPENED|RESOLVED
CC|
https://issues.dlang.org/show_bug.cgi?id=23331
Basile-z changed:
What|Removed |Added
Status|REOPENED|RESOLVED
CC|
https://issues.dlang.org/show_bug.cgi?id=24167
Issue ID: 24167
Summary: @noreturn compiles because of noreturn
Product: D
Version: D2
Hardware: x86_64
OS: FreeBSD
Status: NEW
Severity: enhancement
https://issues.dlang.org/show_bug.cgi?id=24148
RazvanN changed:
What|Removed |Added
CC||razvan.nitu1...@gmail.com
https://issues.dlang.org/show_bug.cgi?id=24148
Max Samukha changed:
What|Removed |Added
Summary|noreturn static array |noreturn static array
https://issues.dlang.org/show_bug.cgi?id=24148
Issue ID: 24148
Summary: noreturn static array initialization causes ICE
(illegal instruction)
Product: D
Version: D2
Hardware: x86_64
OS: All
Status
https://issues.dlang.org/show_bug.cgi?id=24112
--- Comment #6 from Dlang Bot ---
dlang/dmd pull request #15584 "Revert "Fix Issue 24112 - binary expressions
with noreturn vars produ…" was merged into master:
- a90c6d25063b2f5a4e17c165acc63a2800ac68ac by Basile Burg:
Revert &
https://issues.dlang.org/show_bug.cgi?id=24112
Basile-z changed:
What|Removed |Added
Status|RESOLVED|REOPENED
CC|
|--- |FIXED
--- Comment #4 from Dlang Bot ---
dlang/dmd pull request #15564 "Fix Issue 24112 - binary expressions with
noreturn vars produce incon…" was merged into master:
- c5f9ca5bd2952b8f0667ab94133477e83596cdb9 by Nick Treleaven:
Fix Issue 24112 - binary expressions with nor
|--- |FIXED
--- Comment #6 from Dlang Bot ---
dlang/dmd pull request #15562 "Fix Issue 24117 - noreturn can be used as
expression" was merged into master:
- 46f1225eaeaf4332f5769ce5b1e3853d88ede527 by Nick Treleaven:
Fix Issue 24117 - noreturn can be used as expression
https://
https://issues.dlang.org/show_bug.cgi?id=24112
--- Comment #3 from elpenguin...@gmail.com ---
it's true that noreturn isn't an integral type, but it can implicitly convert
to integral types. other instances of implicit conversion are allowed (structs
with integer alias this, for example), so I
https://issues.dlang.org/show_bug.cgi?id=24112
Nick Treleaven changed:
What|Removed |Added
CC||n...@geany.org
--- Comment #2 from Nick
created dlang/dmd pull request #15564 "Fix Issue 24112 - binary
expressions with noreturn vars produce incon…" fixing this issue:
- Fix Issue 24112 - binary expressions with noreturn vars produce inconsistent
results
https://github.com/dlang/dmd/pull/15564
--
https://issues.dlang.org/show_bug.cgi?id=24114
Nick Treleaven changed:
What|Removed |Added
CC||n...@geany.org
--- Comment #1 from Nick
https://issues.dlang.org/show_bug.cgi?id=24117
--- Comment #5 from Nick Treleaven ---
> enum E {e0 = 0, e1 = 1, illegal = noreturn}
> foreach (const i; 0 .. noreturn){}
I made a new fix that is more precise which does reject the 2 above and should
cover all cases.
--
https://issues.dlang.org/show_bug.cgi?id=24117
--- Comment #4 from Dlang Bot ---
@ntrel created dlang/dmd pull request #15562 "Fix Issue 24117 - noreturn can be
used as expression" fixing this issue:
- Fix Issue 24117 - noreturn can be used as expression
https://github.com/dlang/dmd/pull/15562
--
https://issues.dlang.org/show_bug.cgi?id=24117
--- Comment #3 from Basile-z ---
Example 2 was about the member initializer
Also if it's set to 0, then this becomes a problem because it's not expected to
have two members of the same value, e.g
```d
enum E {e0 = 0, e1 = 1, illegal = noreturn
created dlang/dmd pull request #15561 "Fix Issue 24117 - noreturn can be
used as expression" fixing this issue:
- Fix Issue 24117 - noreturn can be used as expression
https://github.com/dlang/dmd/pull/15561
--
Treleaven ---
This code:
auto e = noreturn + 1;
Gets lowered to:
int e = 1;
Also, `cast(int) E.illegal` is 0.
--
https://issues.dlang.org/show_bug.cgi?id=24115
Basile-z changed:
What|Removed |Added
Resolution|FIXED |INVALID
--
https://issues.dlang.org/show_bug.cgi?id=24115
Basile-z changed:
What|Removed |Added
Status|NEW |RESOLVED
Resolution|---
https://issues.dlang.org/show_bug.cgi?id=24117
Issue ID: 24117
Summary: noreturn can be used as expression
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Keywords: accepts-invalid
https://issues.dlang.org/show_bug.cgi?id=24114
Basile-z changed:
What|Removed |Added
Status|NEW |RESOLVED
Resolution|---
https://issues.dlang.org/show_bug.cgi?id=24116
Basile-z changed:
What|Removed |Added
Status|NEW |RESOLVED
Resolution|---
https://issues.dlang.org/show_bug.cgi?id=24116
Basile-z changed:
What|Removed |Added
Summary|no return not accepted as |noreturn not accepted
https://issues.dlang.org/show_bug.cgi?id=24114
Basile-z changed:
What|Removed |Added
See Also||https://issues.dlang.org/sh
|
https://issues.dlang.org/show_bug.cgi?id=24115
Basile-z changed:
What|Removed |Added
See Also||https://issues.dlang.org/sh
|
https://issues.dlang.org/show_bug.cgi?id=24115
Issue ID: 24115
Summary: No runtime crash on use of a noreturn template
argument
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
https://issues.dlang.org/show_bug.cgi?id=24114
Issue ID: 24114
Summary: no crash on use of a noreturn enum member
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Keywords: wrong-code
https://issues.dlang.org/show_bug.cgi?id=24112
Issue ID: 24112
Summary: binary expressions with noreturn vars produce
inconsistent results
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
|--- |FIXED
--- Comment #3 from Dlang Bot ---
dlang/dmd pull request #15439 "Fix 24054 - return expression expected on
noreturn function" was merged into master:
- 01d613ecec3867ee1e71d3f3e08c60de35a41934 by Dennis Korpel:
Fix 24054 - return expression expected on noreturn funct
---
> and should probably suggest removal of the statement
That doesn't result in valid code, it needs to be replaced with something typed
`noreturn`.
--
---
@dkorpel created dlang/dmd pull request #15439 "Fix 24054 - return expression
expected on noreturn function" fixing this issue:
- Fix 24054 - return expression expected on noreturn function
https://github.com/dlang/dmd/pull/15439
--
https://issues.dlang.org/show_bug.cgi?id=24054
Issue ID: 24054
Summary: return expression expected on noreturn function
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Keywords: diagnostic
https://issues.dlang.org/show_bug.cgi?id=23950
RazvanN changed:
What|Removed |Added
Keywords||backend, ice
CC|
https://issues.dlang.org/show_bug.cgi?id=23950
--- Comment #1 from m...@ernestocastellotti.it ---
The absurd thing is that instead this code compiles and works correctly:
import core.stdc.stdlib;
void main() {
auto foo = (false != true) && true || abort();
}
This looks just like a bad bug
https://issues.dlang.org/show_bug.cgi?id=23950
Issue ID: 23950
Summary: Weird backend fail with noreturn type - cod1.d(4027):
Assertion failure
Product: D
Version: D2
Hardware: x86_64
OS: Linux
https://issues.dlang.org/show_bug.cgi?id=23930
Issue ID: 23930
Summary: assert(0) passed to function with noreturn parameter
causes segfault
Product: D
Version: D2
Hardware: All
OS: All
Status
|--- |INVALID
--- Comment #1 from Basile-z ---
"noreturn is the bottom type which can implicitly convert to any type"
bool in that case
--
https://issues.dlang.org/show_bug.cgi?id=23929
Issue ID: 23929
Summary: in operator on noreturn associative array causes dmd
crash
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
|--- |FIXED
--- Comment #4 from Dlang Bot ---
dlang/dmd pull request #15240 "Fix Issue 23914 - auto ref resolution on return
value prevented by noreturn" was merged into master:
- 883de397fb3a1405bdfaaa985abc905049c41fb0 by RazvanN7:
Fix Issue 23914 - auto ref resolution on re
https://issues.dlang.org/show_bug.cgi?id=23927
Issue ID: 23927
Summary: Missing unreachable warning after call to a noreturn
function as if-condition
Product: D
Version: D2
Hardware: All
OS: All
---
@RazvanN7 created dlang/dmd pull request #15240 "Fix Issue 23914 - auto ref
resolution on return value prevented by noreturn" fixing this issue:
- Fix Issue 23914 - auto ref resolution on return value prevented by noreturn
https://github.com/dlang/dmd/pull/15240
--
ref" resolution on
|prevented by bottom type|return value prevented by
| |noreturn (bottom type)
--
https://issues.dlang.org/show_bug.cgi?id=23871
Issue ID: 23871
Summary: ImportC: __attribute((noreturn)) not recognized
Product: D
Version: D2
Hardware: All
OS: Linux
Status: NEW
Severity: enhancement
https://issues.dlang.org/show_bug.cgi?id=23331
--- Comment #3 from Dlang Bot ---
dlang/dmd pull request #14758 "Revert "Fix Issues 23331, 23379 - fix casts
involving noreturn"" was merged into master:
- b8e9e3f29021c6f22233d489e8284165035fa5f5 by Iain Buclaw:
Revert &quo
|--- |FIXED
--- Comment #7 from Dlang Bot ---
dlang/dmd pull request #14758 "Revert "Fix Issues 23331, 23379 - fix casts
involving noreturn"" was merged into master:
- 8bf1c8dab73adb9b990be334cdde1a068cb0a71e by Iain Buclaw:
fix Issue 23587 - cast(void) doesn't work
|--- |FIXED
--- Comment #2 from Dlang Bot ---
dlang/dmd pull request #14758 "Revert "Fix Issues 23331, 23379 - fix casts
involving noreturn"" was merged into master:
- 227b3edae230a4084eacc994cf940ec4e612232b by Iain Buclaw:
fix Issue 23591 - [REG 2.101] In
https://issues.dlang.org/show_bug.cgi?id=23379
--- Comment #3 from Dlang Bot ---
dlang/dmd pull request #14758 "Revert "Fix Issues 23331, 23379 - fix casts
involving noreturn"" was merged into master:
- b8e9e3f29021c6f22233d489e8284165035fa5f5 by Iain Buclaw:
Revert &quo
https://issues.dlang.org/show_bug.cgi?id=23587
--- Comment #6 from Iain Buclaw ---
(In reply to artha from comment #5)
> (In reply to RazvanN from comment #3)
> > Why does it matter? The call to fun will never return so casting to void (or
> > any other value) it actually a no-op.
>
> In this
https://issues.dlang.org/show_bug.cgi?id=23587
--- Comment #5 from ar...@samerion.com ---
(In reply to RazvanN from comment #3)
> Why does it matter? The call to fun will never return so casting to void (or
> any other value) it actually a no-op.
In this case it makes the compiler issue an
https://issues.dlang.org/show_bug.cgi?id=23591
Iain Buclaw changed:
What|Removed |Added
See Also||https://issues.dlang.org/sh
https://issues.dlang.org/show_bug.cgi?id=23587
Iain Buclaw changed:
What|Removed |Added
See Also||https://issues.dlang.org/sh
https://issues.dlang.org/show_bug.cgi?id=23587
--- Comment #4 from Iain Buclaw ---
(In reply to RazvanN from comment #3)
> Why does it matter? The call to fun will never return so casting to void (or
> any other value) it actually a no-op.
The devils in the detail of the change, not the example
---
@ibuclaw updated dlang/dmd pull request #14758 "Revert "Fix Issues 23331, 23379
- fix casts involving noreturn"" fixing this issue:
- fix Issue 23591 - [REG 2.101] Invalid casts accepted by the compiler if from
type is noreturn
https://github.com/dlang/dmd/pull/14758
--
https://issues.dlang.org/show_bug.cgi?id=23591
Iain Buclaw changed:
What|Removed |Added
Keywords||accepts-invalid
CC|
https://issues.dlang.org/show_bug.cgi?id=23591
Issue ID: 23591
Summary: [REG 2.101] Invalid casts accepted by the compiler if
from type is noreturn
Product: D
Version: D2
Hardware: All
OS: All
https://issues.dlang.org/show_bug.cgi?id=23587
RazvanN changed:
What|Removed |Added
CC||razvan.nitu1...@gmail.com
--- Comment #3 from
https://issues.dlang.org/show_bug.cgi?id=23587
Iain Buclaw changed:
What|Removed |Added
Keywords||rejects-valid
--
---
@ibuclaw updated dlang/dmd pull request #14758 "Revert "Fix Issues 23331, 23379
- fix casts involving noreturn"" fixing this issue:
- fix Issue 23587 - cast(void) doesn't work for noreturn
https://github.com/dlang/dmd/pull/14758
--
https://issues.dlang.org/show_bug.cgi?id=23331
--- Comment #2 from Dlang Bot ---
@ibuclaw created dlang/dmd pull request #14758 "Revert "Fix Issues 23331, 23379
- fix casts involving noreturn"" mentioning this issue:
- Revert "Fix Issues 23331, 23379 - fix
https://issues.dlang.org/show_bug.cgi?id=23379
--- Comment #2 from Dlang Bot ---
@ibuclaw created dlang/dmd pull request #14758 "Revert "Fix Issues 23331, 23379
- fix casts involving noreturn"" mentioning this issue:
- Revert "Fix Issues 23331, 23379 - fix
https://issues.dlang.org/show_bug.cgi?id=23331
Iain Buclaw changed:
What|Removed |Added
Keywords||backend
Status|RESOLVED
https://issues.dlang.org/show_bug.cgi?id=23379
Iain Buclaw changed:
What|Removed |Added
Keywords||backend
Status|RESOLVED
https://issues.dlang.org/show_bug.cgi?id=23587
Iain Buclaw changed:
What|Removed |Added
CC||ibuc...@gdcproject.org
--- Comment #1 from
https://issues.dlang.org/show_bug.cgi?id=23587
Issue ID: 23587
Summary: cast(void) doesn't work for noreturn
Product: D
Version: D2
Hardware: x86_64
OS: Linux
Status: NEW
Severity: regression
https://issues.dlang.org/show_bug.cgi?id=16222
--- Comment #3 from Nick Treleaven ---
> we need a typeof([]) that implicitly converts to any T[] (unlike void[]).
That would be `noreturn[]`:
https://github.com/dlang/DIPs/blob/master/DIPs/accepted/DIP1034.md#the-type-of-the-empty-array-literal
--
https://issues.dlang.org/show_bug.cgi?id=21954
Iain Buclaw changed:
What|Removed |Added
Priority|P1 |P3
--
https://issues.dlang.org/show_bug.cgi?id=16222
Iain Buclaw changed:
What|Removed |Added
Priority|P1 |P3
--
sert(false, "Accessed expression of type noreturn")' (#14596)
https://github.com/dlang/dmd/pull/14609
--
|--- |FIXED
--- Comment #2 from Dlang Bot ---
dlang/dmd pull request #14596 "fix Issue 23439 - [REG 2.098] Error: CTFE
internal error: literal 'assert(false, "Accessed expression of type
noreturn")'" was merged into stable:
- 5a060be19cd4c513693b4d1f8e0deb27b7bacc31 b
---
@ibuclaw created dlang/dmd pull request #14596 "fix Issue 23439 - [REG 2.098]
Error: CTFE internal error: literal 'assert(false, "Accessed expression of type
noreturn")'" fixing this issue:
- fix Issue 23439 - [REG 2.098] Error: CTFE internal error: literal
'assert(false, "Ac
https://issues.dlang.org/show_bug.cgi?id=23439
Issue ID: 23439
Summary: [REG 2.098] Error: CTFE internal error: literal
'assert(false, "Accessed expression of type
noreturn")'
Product: D
V
https://issues.dlang.org/show_bug.cgi?id=23331
RazvanN changed:
What|Removed |Added
Status|NEW |RESOLVED
CC|
https://issues.dlang.org/show_bug.cgi?id=23379
RazvanN changed:
What|Removed |Added
Status|NEW |RESOLVED
Resolution|---
---
@RazvanN7 updated dlang/dmd pull request #14494 "Fix Issues 23331, 23379 - fix
casts involving noreturn" fixing this issue:
- Fix Issues 23331, 23379 - fix casts involving noreturn
https://github.com/dlang/dmd/pull/14494
--
---
@RazvanN7 updated dlang/dmd pull request #14494 "Fix Issues 23331, 23379 - fix
casts involving noreturn" fixing this issue:
- Fix Issues 23331, 23379 - fix casts involving noreturn
https://github.com/dlang/dmd/pull/14494
--
https://issues.dlang.org/show_bug.cgi?id=23379
RazvanN changed:
What|Removed |Added
Severity|enhancement |critical
--
https://issues.dlang.org/show_bug.cgi?id=23379
Issue ID: 23379
Summary: Cast of expressions with type noreturn result in ice
Product: D
Version: D2
Hardware: x86_64
OS: Linux
Status: NEW
Severity
https://issues.dlang.org/show_bug.cgi?id=23331
Issue ID: 23331
Summary: implicit cast from noreturn crashes compiler in
various ways
Product: D
Version: D2
Hardware: x86_64
OS: Linux
Status: NEW
failed to |empty array literal should
|infer/coerce types for |have type noreturn[]
|instantiation |
--
|--- |FIXED
--- Comment #6 from Dlang Bot ---
dlang/dmd pull request #14274 "Fix Issue 21956 - ice on foreach over an AA of
noreturn" was merged into master:
- 52bb3f701e18dd393065aa3184f1b8ef4bf5690a by RazvanN7:
Fix Issue 21956 - ice on foreach over an AA of noreturn
https://
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
--
---
@RazvanN7 created dlang/dmd pull request #14274 "Fix Issue 21956 - Issue 21956
- ice on foreach over an AA of noreturn" fixing this issue:
- Fix Issue 21956 - Issue 21956 - ice on foreach over an AA of noreturn
https://github.com/dlang/dmd/pull/14274
--
|--- |FIXED
--- Comment #4 from Dlang Bot ---
dlang/dmd pull request #14252 "fix Issue 23206 - ImportC: __declspec(noreturn)
does not compile" was merged into master:
- 9df64451e42743b92cc46cf99b0742eed3382125 by Walter Bright:
fix Issue 23206 - ImportC: __declspec(nore
---
@WalterBright created dlang/dmd pull request #14252 "fix Issue 23206 - ImportC:
__declspec(noreturn) does not compile" fixing this issue:
- fix Issue 23206 - ImportC: __declspec(noreturn) does not compile
https://github.com/dlang/dmd/pull/14252
--
that |__declspec(noreturn) does
|relies on |not compile
--
|--- |FIXED
--- Comment #2 from Dlang Bot ---
dlang/dmd pull request #14187 "Fix Issue 23063 - It is possible to return a
noreturn value" was merged into master:
- 8a0812895ccfabcdee31f2140c203367ccee5e97 by RazvanN7:
Fix Issue 23063 - It is possible to return a noreturn va
---
@RazvanN7 created dlang/dmd pull request #14187 "Fix Issue 23063 - It is
possible to return a noreturn value" fixing this issue:
- Fix Issue 23063 - It is possible to return a noreturn value
https://github.com/dlang/dmd/pull/14187
--
|--- |FIXED
--- Comment #4 from Dlang Bot ---
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
--
https://issues.dlang.org/show_bug.cgi?id=23114
--- Comment #3 from Dlang Bot ---
@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 me
1 - 100 of 450 matches
Mail list logo