Thread View: gnu.gcc.bug
1 messages
1 total messages
Started by Mathew J. Hostetter
Mon, 02 Nov 1992 12:14
gcc 2.3.1: Enums no longer work in labeled element array initization extension
Author: Mathew J. Hostetter
Date: Mon, 02 Nov 1992 12:14
Date: Mon, 02 Nov 1992 12:14
13 lines
874 bytes
874 bytes
My system is a 68040 NeXT running gcc 2.3.1 under NeXTSTEP 3.0.
slayer> cat test.c
enum { NUM = 5 };
int bad_array[] = { [NUM] 9 };
int good_array[] = { [5] 9 };
int another_good_array[] = { [4 + 1] 9 };
slayer> gcc -c test.c
test.c:3: non-constant array index in initializer
-Mat
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads