Bug 24792 – is expression doesn't seem to correctly handle function attributes

Status
NEW
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2024-10-04T04:57:54Z
Last change time
2024-12-13T19:37:46Z
Assigned to
No Owner
Creator
Manu
Moved to GitHub: dmd#20523 →

Comments

Comment #0 by turkeyman — 2024-10-04T04:57:54Z
This shouldn't emit `true`: alias Fun = void function(int); pragma(msg, is(Fun : RT function(Args) nothrow @nogc, RT, Args...)); The function pointer Fun should not say it's convertible to a nothrow @nogc function pointer; because it's not!
Comment #1 by robert.schadek — 2024-12-13T19:37:46Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/20523 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB