This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
libstdc++/3561: declaration of '__fmt' shadows previous local in ostream.tcc:490
- To: gcc-gnats at gcc dot gnu dot org
- Subject: libstdc++/3561: declaration of '__fmt' shadows previous local in ostream.tcc:490
- From: molivier at users dot sourceforge dot net
- Date: 4 Jul 2001 15:54:56 -0000
- Reply-To: molivier at users dot sourceforge dot net
>Number: 3561
>Category: libstdc++
>Synopsis: declaration of '__fmt' shadows previous local in ostream.tcc:490
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Jul 04 08:56:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator: Mathieu Olivier
>Release: 3.0 (Debian) (Debian testing/unstable)
>Organization:
>Environment:
System: Linux antares 2.2.17 #1 Sun Jun 25 09:24:41 EST 2000 i686 unknown
Architecture: i686
host: i386-pc-linux-gnu
build: i386-pc-linux-gnu
target: i386-pc-linux-gnu
configured with: ../src/configure -v --enable-languages=c,c++,java,f77,proto,objc --prefix=/usr --infodir=/share/info --mandir=/share/man --enable-shared --with-gnu-as --with-gnu-ld --with-system-zlib --enable-long-long --enable-nls --without-included-gettext --disable-checking --enable-threads=posix --enable-java-gc=boehm --with-cpp-install-dir=bin --enable-objc-gc i386-linux
>Description:
I compile my program with -Wshadow and g++ said: "/usr/include/g++-v3/bits/ostream.tcc:490: warning: declaration of `__fmt' shadows previous local" which is exact...
>How-To-Repeat:
Just try to use ostream with -Wshadow
>Fix:
Remaming all instances of the second __fmt to __fmt2 should be enough I think
>Release-Note:
>Audit-Trail:
>Unformatted: