Thread overview
[Issue 17638] A pragma inside a function body is seen as a statement
Jul 12, 2017
Vladimir Panteleev
Jul 12, 2017
anonymous4
Aug 28, 2018
Nicholas Wilson
Aug 28, 2018
Nicholas Wilson
Dec 17, 2022
Iain Buclaw
Sep 07, 2023
Basile-z
July 12, 2017
https://issues.dlang.org/show_bug.cgi?id=17638

Vladimir Panteleev <dlang-bugzilla@thecybershadow.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |spec

--
July 12, 2017
https://issues.dlang.org/show_bug.cgi?id=17638

--- Comment #1 from anonymous4 <dfj1esp02@sneakemail.com> ---
This can't be a declaration, because empty declaration can't have attributes:
---
static;
---
Error: declaration expected following attribute, not ';'

--
August 28, 2018
https://issues.dlang.org/show_bug.cgi?id=17638

Nicholas Wilson <iamthewilsonator@hotmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |iamthewilsonator@hotmail.co
                   |                            |m

--- Comment #2 from Nicholas Wilson <iamthewilsonator@hotmail.com> ---
*** Issue 19149 has been marked as a duplicate of this issue. ***

--
August 28, 2018
https://issues.dlang.org/show_bug.cgi?id=17638

--- Comment #3 from Nicholas Wilson <iamthewilsonator@hotmail.com> ---
void main(){
    pragma(mangle, "aaa") __gshared int a = 1; // Is a declaration, incorrectly
marked as a pragma statement.
}

see issue 19149.

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

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P1                          |P3

--
September 07, 2023
https://issues.dlang.org/show_bug.cgi?id=17638

Basile-z <b2.temp@gmx.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
           See Also|                            |https://issues.dlang.org/sh
                   |                            |ow_bug.cgi?id=22682
         Resolution|---                         |DUPLICATE

--- Comment #4 from Basile-z <b2.temp@gmx.com> ---


*** This issue has been marked as a duplicate of issue 22682 ***

--