This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: C++: -Wshadow violates the ISO C++ scoping rules
- To: Mike Stump <mrs at windriver dot com>
- Subject: Re: C++: -Wshadow violates the ISO C++ scoping rules
- From: Franz Sirl <Franz dot Sirl-kernel at lauterbach dot com>
- Date: Fri, 28 Jan 2000 12:32:41 +0100
- Cc: gcc-bugs at gcc dot gnu dot org,pfeifer at dbai dot tuwien dot ac dot at,gcc-patches at gcc dot gnu dot org
At 23:02 27.01.00 , Mike Stump wrote:
>Thu Jan 27 13:54:12 2000 Mike Stump <mrs@wrs.com>
>
> * decl.c (pushdecl): Fix up shadow warnings with respect to implicit
> for scopes.
Hi,
this seems to break bootstrap with --enable-checking=tree,gc,misc on
powerpc-linux-gnu:
make[4]: Entering directory `/home/fsirl/obj/gccm/gcc'
/home/fsirl/obj/gccm/gcc/xgcc -B/home/fsirl/obj/gccm/gcc/
-B/home/fsirl/gnubin/ppc-redhat-linux/bin/
-I/home/fsirl/gnubin/ppc-redhat-linux/include -O2
-DIN_GCC -g -O2 -I./include -fPIC -g1 -DHAVE_GTHR_DEFAULT
-DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -mstrict-align -g -O2 -I.
-I../../../cvsx/gccm/g
cc -I../../../cvsx/gccm/gcc/config -I../../../cvsx/gccm/gcc/../include \
-c ../../../cvsx/gccm/gcc/cp/tinfo.cc
In file included from ../../../cvsx/gccm/gcc/cp/tinfo.cc:31:
../../../cvsx/gccm/gcc/cp/tinfo.h: In method
`__class_type_info::__class_type_info (const char *, const
__class_type_info::base_info *, unsigned int)':
../../../cvsx/gccm/gcc/cp/tinfo.h:190: Tree check: expected var_decl, have
function_decl
../../../cvsx/gccm/gcc/cp/tinfo.h:190: Internal compiler error in
`pushdecl', at ../cvsx/gccm/gcc/cp/decl.c:3941
Please submit a full bug report.
See <URL:http://www.gnu.org/software/gcc/faq.html#bugreport> for instructions.
DECL_DEAD_FOR_LOCAL doesn't allow a function_decl it seems, so probably an
additional check is needed here?
Franz.