kipp@warp.sgi.com (Kipp Hickman) (10/10/89)
The following program gives an error that could be avoided. This problem
occurs with multiple include files defining the same procedure, which sometimes
is unavoidable...
$ cat foo.c++
extern "C" {
int foo(int, int, int = 0666);
int foo(int, int, int = 0666);
}
$ CC2 -c foo.c++
"foo.c++", line 3: error: two initializers for foo() argument ?
The compiler might avoid this message by noticing that the values are
identical (guess)...
kipp hickman
silicon graphics inc.