Thread View: gnu.gcc.bug
1 messages
1 total messages
Started by Giuseppe Attardi
Mon, 31 Aug 1992 10:56
nested functions
Author: Giuseppe Attardi
Date: Mon, 31 Aug 1992 10:56
Date: Mon, 31 Aug 1992 10:56
17 lines
814 bytes
814 bytes
In gcc 2.0 under SunOS 4.1.2, the following program crashes the compiler
with the message:
gcc: Internal compiler error: program cc1 got fatal signal 6
foo(int a)
{ int x;
void bar (int z) { x = a; }
bar(a);
}
while it works with the assignement 'x = z'.
The manual (sec. 7.4) says that "a nested function can access all the
variables of the containing function", and I interpret this as including
the parameter 'a'.
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