Thread overview
[Issue 23040] importC: optimizer rejects null dereference of volatile pointer
Apr 20, 2022
Walter Bright
Dec 17, 2022
Iain Buclaw
Apr 09, 2023
Walter Bright
April 20, 2022
https://issues.dlang.org/show_bug.cgi?id=23040

Walter Bright <bugzilla@digitalmars.com> changed:

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

--- Comment #1 from Walter Bright <bugzilla@digitalmars.com> ---
volatile is ignored in ImportC because the D type system has no concept of volatile.

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

Iain Buclaw <ibuclaw@gdcproject.org> changed:

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

--
April 09, 2023
https://issues.dlang.org/show_bug.cgi?id=23040

--- Comment #2 from Walter Bright <bugzilla@digitalmars.com> ---
You can work around it with something like:

    static void* p;
    *(unsigned int*)p = (unsigned int) 0xdeadbeefUL;

--