From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Jaeger To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org Subject: Re: c++/4095: Variable misspelled in gcc/cp/rtti.c Date: Thu, 23 Aug 2001 21:56:00 -0000 Message-id: <20010824045601.25862.qmail@sourceware.cygnus.com> X-SW-Source: 2001-08/msg00612.html List-Id: The following reply was made to PR c++/4095; it has been noted by GNATS. From: Andreas Jaeger To: rkl@connect.org.uk Cc: gcc-gnats@gcc.gnu.org, gcc-patches@gcc.gnu.org Subject: Re: c++/4095: Variable misspelled in gcc/cp/rtti.c Date: Fri, 24 Aug 2001 06:52:00 +0200 rkl@connect.org.uk writes: >>Number: 4095 >>Category: c++ >>Synopsis: Variable misspelled in gcc/cp/rtti.c [...] > >Description: > In line 1293 (create_pseudo_type_info() function), the > first param of va_arg() is spelled "app", which doesn't > exist as a variable. > >How-To-Repeat: > Compile without ANSI_PROTOTYPES defined - I did this by > building with a K&R C compiler. > >Fix: > Line 1293 should read: > > ident = va_arg (ap, int); Here's a patch. Ok to commit to the trunk? Or should we remove this ANSI_PROTOTYPES stuff since cp will be compiled with GCC? Andreas 2001-08-24 Andreas Jaeger , rkl@connect.org.uk * cp/rtti.c (VPARAMS): Fix parameter. ============================================================ Index: gcc/cp/rtti.c --- gcc/cp/rtti.c 2001/08/14 23:51:27 1.121 +++ gcc/cp/rtti.c 2001/08/24 04:51:35 @@ -1170,7 +1170,7 @@ VA_START (ap, ident); #ifndef ANSI_PROTOTYPES real_name = va_arg (ap, char const *); - ident = va_arg (app, int); + ident = va_arg (ap, int); #endif /* Generate the pseudo type name. */ -- Andreas Jaeger SuSE Labs aj@suse.de private aj@arthur.inka.de http://www.suse.de/~aj