From mboxrd@z Thu Jan 1 00:00:00 1970 From: Phil Edwards To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org Subject: Re: libstdc++/3561: declaration of '__fmt' shadows previous local in ostream.tcc:490 Date: Thu, 05 Jul 2001 14:36:00 -0000 Message-id: <20010705213602.327.qmail@sourceware.cygnus.com> X-SW-Source: 2001-07/msg00133.html List-Id: The following reply was made to PR libstdc++/3561; it has been noted by GNATS. From: Phil Edwards To: gcc-gnats@gcc.gnu.org Cc: Subject: Re: libstdc++/3561: declaration of '__fmt' shadows previous local in ostream.tcc:490 Date: Thu, 5 Jul 2001 17:32:16 -0400 On Thu, Jul 05, 2001 at 09:06:00PM -0000, Phil Edwards wrote: > Nope, doesn't happen. I do see the warning (along with a few others) if > I use "-Wshadow -Wsystem-headers", Just for the record, compiling 17_intro/headers.cc with those two switches yields: In file included from /home/pme/build/install-2001-07-05/include/g++-v3/bits/locale_facets.h:415, from /home/pme/build/install-2001-07-05/include/g++-v3/bits/basic_ios.h:36, from /home/pme/build/install-2001-07-05/include/g++-v3/bits/std_ios.h:46, from /home/pme/build/install-2001-07-05/include/g++-v3/bits/std_ostream.h:39, from /home/pme/build/install-2001-07-05/include/g++-v3/bits/std_bitset.h:70, from /home/pme/build/install-2001-07-05/include/g++-v3/bitset:31, from headers.cc:26: /home/pme/build/install-2001-07-05/include/g++-v3/bits/codecvt.h: In member function `virtual std::codecvt_base::result std::codecvt<_InternT, _ExternT, std::__enc_traits>::do_out(std::__enc_traits&, const _InternT*, const _InternT*, const _InternT*&, _ExternT*, _ExternT*, _ExternT*&) const': /home/pme/build/install-2001-07-05/include/g++-v3/bits/codecvt.h:400: warning: declaration of `__desc_type' shadows a member of `this' /home/pme/build/install-2001-07-05/include/g++-v3/bits/codecvt.h: In member function `virtual std::codecvt_base::result std::codecvt<_InternT, _ExternT, std::__enc_traits>::do_unshift(std::__enc_traits&, _ExternT*, _ExternT*, _ExternT*&) const': /home/pme/build/install-2001-07-05/include/g++-v3/bits/codecvt.h:467: warning: declaration of `__desc_type' shadows a member of `this' /home/pme/build/install-2001-07-05/include/g++-v3/bits/codecvt.h: In member function `virtual std::codecvt_base::result std::codecvt<_InternT, _ExternT, std::__enc_traits>::do_in(std::__enc_traits&, const _ExternT*, const _ExternT*, const _ExternT*&, _InternT*, _InternT*, _InternT*&) const': /home/pme/build/install-2001-07-05/include/g++-v3/bits/codecvt.h:505: warning: declaration of `__desc_type' shadows a member of `this' In file included from /home/pme/build/install-2001-07-05/include/g++-v3/bits/std_ostream.h:278, from /home/pme/build/install-2001-07-05/include/g++-v3/bits/std_bitset.h:70, from /home/pme/build/install-2001-07-05/include/g++-v3/bitset:31, from headers.cc:26: /home/pme/build/install-2001-07-05/include/g++-v3/bits/ostream.tcc: In function `void std::__pad_char(std::basic_ios<_CharT, _Traits>&, _CharT*, const _CharT*, int, int)': /home/pme/build/install-2001-07-05/include/g++-v3/bits/ostream.tcc:490: warning: declaration of `__fmt' shadows previous local