[Issue 23347] ImportC: pragma pack causes asm label to set symbol name to be ignored

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Sep 24 06:05:37 UTC 2022


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

Walter Bright <bugzilla at digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla at digitalmars.com

--- Comment #2 from Walter Bright <bugzilla at digitalmars.com> ---
A simpler repro:

void fork() asm("plugh");

#pragma pack(push, 4)
void spoon() asm("xyzzy");
#pragma pack(pop);

void test()
{
    fork();  // calls plugh
    spoon(); // calls spoon
}

--


More information about the Digitalmars-d-bugs mailing list