Thread overview
[Issue 22018] pragma(inline) parameter not checked when the pragma is a declaration
Jun 15, 2021
RazvanN
Jun 15, 2021
RazvanN
June 15, 2021
https://issues.dlang.org/show_bug.cgi?id=22018

RazvanN <razvan.nitu1305@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |razvan.nitu1305@gmail.com

--- Comment #1 from RazvanN <razvan.nitu1305@gmail.com> ---
I'm not sure this is a bug. Since the declaration is missing, the pragma is no longer semantically analyzed.

--
June 15, 2021
https://issues.dlang.org/show_bug.cgi?id=22018

RazvanN <razvan.nitu1305@gmail.com> changed:

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

--- Comment #2 from RazvanN <razvan.nitu1305@gmail.com> ---
Looking at the dmd source code it seems that this is on purpose [1]. Closing as invalid.

[1] https://github.com/dlang/dmd/blob/master/src/dmd/dsymbolsem.d#L1631

--
June 15, 2021
https://issues.dlang.org/show_bug.cgi?id=22018

moonlightsentinel@disroot.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |moonlightsentinel@disroot.o
                   |                            |rg
         Resolution|INVALID                     |WONTFIX

--