Thread View: gnu.g++.bug
1 messages
1 total messages
Started by Marvin Solomon
Wed, 27 Jan 1993 03:00
mysterious error message
Author: Marvin Solomon
Date: Wed, 27 Jan 1993 03:00
Date: Wed, 27 Jan 1993 03:00
15 lines
1050 bytes
1050 bytes
With g++ 2.3.3, the following program:
int main(int, char**) {
goto L;
int i=0;
L: return 0;
}
generates the following error messages (and no others):
bug14.c: In function `int main (int, char **)':
bug14.c:3: crosses initialization of `i'
In this simple test, it is clear that the word "goto" is omitted from
the message, but I had a heck of a time figuring out what was wrong when
this came up in a big program and both the goto and the label were
far from the line affected (the "3" in the message is the line number of
the initialization).
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