[Issue 22724] ImportC: VC's __pragma(pack) fails to compile

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Feb 3 09:35:11 UTC 2022


https://issues.dlang.org/show_bug.cgi?id=22724

Max Samukha <maxsamukha at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|ImportC: VC's __pragma      |ImportC: VC's
                   |fails to compile            |__pragma(pack) fails to
                   |                            |compile

--- Comment #2 from Max Samukha <maxsamukha at gmail.com> ---
I meant specifically __pragma(pack). Having skimmed over
https://github.com/dlang/dmd/pull/13112, I got the impression that
__pragma(pack) was supported. I see now that the __pragma token is reserved,
but only '#pragma pack' is recognized.

I was able to shut up the compiler with this hack (correctness of '#pragma
pack' implementation is not immediately important to me):

#define PP_HASH #
#define PP_IDENTITY(value) value

#define __pragma(args) PP_IDENTITY(PP_HASH)pragma args

--


More information about the Digitalmars-d-bugs mailing list