Thread overview
[Issue 23053] importC: can't take address of some compound-literals
Sep 23, 2022
Walter Bright
Dec 17, 2022
Iain Buclaw
Apr 09, 2023
Walter Bright
September 23, 2022
https://issues.dlang.org/show_bug.cgi?id=23053

Walter Bright <bugzilla@digitalmars.com> changed:

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

--- Comment #1 from Walter Bright <bugzilla@digitalmars.com> ---
clang gives a warning:

test.c:4:7: warning: incompatible pointer types initializing 'int *' with an
expression of type 'int (*)[1]' [-Wincompatible-pointer-types]
        int *a = &(int[1]){0};

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

Iain Buclaw <ibuclaw@gdcproject.org> changed:

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

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

--- Comment #2 from Walter Bright <bugzilla@digitalmars.com> ---
The first line compiles successfully now. The second one does not.

--