This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
tree_list not supported by dump_type (Historical Question)
- From: "Ernest L. Williams Jr." <ernesto at ornl dot gov>
- To: GCC <gcc at gcc dot gnu dot org>
- Cc: ernesto at ornl dot gov
- Date: Sat, 04 Dec 2004 09:13:07 -0500
- Subject: tree_list not supported by dump_type (Historical Question)
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.