Thread View: gnu.gcc.bug
1 messages
1 total messages
Started by Stefan Kuhlins
Fri, 24 Jul 1992 12:34
a little bug
Author: Stefan Kuhlins
Date: Fri, 24 Jul 1992 12:34
Date: Fri, 24 Jul 1992 12:34
26 lines
879 bytes
879 bytes
----------
X-Sun-Data-Type: text
X-Sun-Data-Description: text
X-Sun-Data-Name: text
X-Sun-Content-Lines: 1
----------
X-Sun-Data-Type: default
X-Sun-Data-Description: default
X-Sun-Data-Name: inc.C
X-Sun-Content-Lines: 16
#include <iostream.h>
#include <string.h>
int main()
{
int i = 3;
cin >> i;
char name[ (i ? 6 : 0) ]; // this can't work !!
cout << sizeof(name) << endl;
strcpy (name, "hallo");
cout << name << endl;
return 0;
}
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