Bug 22046 – @safe/@trusted ignored in delegate / function pointer suffix

Status
NEW
Severity
normal
Priority
P3
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2021-06-19T22:49:13Z
Last change time
2024-12-13T19:17:12Z
Assigned to
No Owner
Creator
Vladimir Panteleev
Moved to GitHub: dmd#19950 →

Comments

Comment #0 by dlang-bugzilla — 2021-06-19T22:49:13Z
//////////// test.d //////////// alias A = @safe void function(); alias B = void function() @safe; static assert(is(A == B)); //////////////////////////////// Does not happen with pure / nothrow / @nogc.
Comment #1 by dlang-bugzilla — 2021-06-19T23:37:21Z
Comment #2 by dlang-bugzilla — 2021-06-19T23:37:45Z
If this is some kind of legacy language misfeature, it needs to be put on the deprecation path.
Comment #3 by dkorpel — 2022-04-10T19:20:34Z
Behavior was introduced by: commit f15ca4c322c61d8acec1987351c0eb2b520aa327 Author: k-hara <[email protected]> Date: Sat Jun 28 14:17:43 2014 +0900 Keep existing weird prefix attribute behavior on AliasDeclaration and VarDeclaration I'd like to store all prefix attributes to `Declaration::storage_class`, but currently it's not possible because of these behaviors.
Comment #4 by robert.schadek — 2024-12-13T19:17:12Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/19950 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB