g++-2.95 compiler error
Igor Sheyn
sheyn@cs.bu.edu
Sun Aug 1 16:57:00 GMT 1999
Hi,
here's a small program which g++ 2.8.1 compiles ( albeit
with a warning ) and g++ 2.95 doesn't:
------------------------------------snip------------------------------------
#include <stdio.h>
int incr(int i){return ++i;}
main()
{
int (*dummy)(...);
dummy=incr;
(void)printf("%d\n",dummy(1));
return(0);
}
------------------------------------snip------------------------------------
% g++ xyu.c
xyu.c:8: sorry, not implemented: `tree_list' not supported by dump_type
xyu.c: In function `int main()':
xyu.c:8: ANSI C++ prohibits conversion from `()' to `(...)'
Correct me if I'm wrong, but I believe submitting a complete bug report
here is not necessary.
Thanks
Igor
More information about the Gcc-bugs
mailing list