From: Benjamin R. <Ben...@ep...> - 2002-11-19 15:03:21
|
Hi Luke, "Luke Dunstan" <cod...@ho...> writes: > This problem occurs only when compiling C++, so you probably > compiled the example as C. Thanks, I got it now. It's actually an old friend of mine, it looks similar to http://gcc.gnu.org/cgi-bin/gnatsweb.pl?pr=4676, just than it was the C compiler, now it's the C++ compiler. Also this time it's an error, not just a warning. > It works (at least for GCC 3.2) if you declare the function before > or after defining it, but don't ask me why: Casting gets around the problem also. Ranjit, I suggest you submit a bug report at http://gcc.gnu.org/cgi-bin/gnatsweb.pl, so that this can get fixed. so long, benny |