tree_list not supported by dump_type (Historical Question)
Ernest L. Williams Jr.
ernesto@ornl.gov
Sat Dec 4 14:13:00 GMT 2004
Hi,
When the following message occured in gcc-2.95 it was addressed in
gcc-2.95.1
===============================================================================
new_test1.cc:14: sorry, not implemented: `tree_list' not supported by
dump_type
new_test1.cc:14: ANSI C++ prohibits conversion from `()' to `(...)'
===============================================================================
Looks like the following files were modified to achieve this:
"gcc/gcc/cp/error.c" and "gcc/gcc/cp/typeck.c"
Did this fix survive in gcc-3.X.X? Was this considered a compiler and
later as GCC became more
ISO C++ compliant the patch was removed? Any help in understanding is
appreciated.
====== snippet from gcc/gcc/cp/typeck.c in gcc-2.951 ===========
--- 1355,1367 ----
if (t1 == 0 && t2 != 0)
{
! if (! flag_strict_prototype && t2 == void_list_node)
! /* t1 might be the arglist of a function pointer in extern "C"
! declared to take (), which we fudged to (...). Don't make
the
! user pay for our mistake. */;
! else
! cp_pedwarn ("ANSI C++ prohibits conversion from `%#T' to `
(...)'",
! parms2);
return self_promoting_args_p (t2);
}
if (t2 == 0)
***************
*** 6360,6366 ****
Thanks,
Ernest L. Williams Jr.
More information about the Gcc
mailing list