stdcxx-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Sebor (JIRA)" <j...@apache.org>
Subject [jira] Created: (STDCXX-56) [gcc -Wshadow] warning from <deque> and <vector>
Date Wed, 19 Oct 2005 19:53:45 GMT
[gcc -Wshadow] warning from <deque> and <vector>
------------------------------------------------

         Key: STDCXX-56
         URL: http://issues.apache.org/jira/browse/STDCXX-56
     Project: STDCXX
        Type: Bug
  Components: 23. Containers  
    Versions: 4.1.2    
 Environment: gcc 2.95.2
    Reporter: Martin Sebor
 Assigned to: Martin Sebor 
    Priority: Minor
     Fix For: 4.1.3


Compiling <deque> and <vector> with gcc 2.95.2 (this one was on IRIX but the OS
probably doesn't matter) yields lots of warnings like the one below:

gcc -c -I/build/sebor/dev/stdlib/include/ansi -D_RWSTDDEBUG   -D_REENTRANT -D_RWSTD_USE_CONFIG
-I/build/sebor/gcc-2.95.2-15d/include -I/build/sebor/dev/stdlib/include -I/build/sebor/dev/stdlib/examples/include
 -pedantic -nostdinc++ -fhonor-std -ftemplate-depth-32 -fsquangle -g  -Wall -W -Wcast-qual
-Winline -Wshadow -Wwrite-strings -Wno-long-long -Wcast-align  /build/sebor/dev/stdlib/examples/manual/trnsform.cpp
/build/sebor/dev/stdlib/include/deque: In method `void std::deque<int,std::allocator<int>
>::insert<const int *>(__rw::__rw_debug_iter<std::deque<int,std::allocator<int>
>,std::__rw_deque_iter<int,int,int *,int &,std::allocator<int> >,std::__rw_deque_iter<int,int,int
*,int &,std::allocator<int> > >, const int *, const int *)':
/build/sebor/dev/stdlib/include/deque.cc:524:   instantiated from `std::deque<int,std::allocator<int>
>::_C_assign_range<const int *>(const int *, const int *, std::input_iterator_tag)'
/build/sebor/dev/stdlib/include/deque:764:   instantiated from here
/build/sebor/dev/stdlib/include/deque:627: warning: declaration of `__it' shadows previous
local


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Mime
View raw message