You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
static char * name[] = { [0x80000000] = "bar" };
The compilation hangs, and a message is as follows:
.c:2:2: warning: array designators are a C99 extension [-Wc99-designator]
[0x80000000] = "bar"
^~~~~~~~~~~~
.c:2:17: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings]
[0x80000000] = "bar"
^
^C
The text was updated successfully, but these errors were encountered:
The code is as follows:
static char * name[] = { [0x80000000] = "bar" };
The compilation hangs, and a message is as follows:
.c:2:2: warning: array designators are a C99 extension [-Wc99-designator]
[0x80000000] = "bar"
^~~~~~~~~~~~
.c:2:17: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings]
[0x80000000] = "bar"
^
^C
The text was updated successfully, but these errors were encountered: