This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/11158] New: Annoying warning message


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11158

           Summary: Annoying warning message
           Product: gcc
           Version: 3.2.3
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: emild@collectivestudios.com
                CC: gcc-bugs@gcc.gnu.org

The example below triggers the following warning messages:

Prop/test.cpp: In function `void foo()':
Prop/test.cpp:6: warning: `typename std::vector<T, std::allocator<_CharT> 
   >::iterator' is implicitly a typename
Prop/test.cpp:6: warning: implicit typename is deprecated, please see the 
   documentation for details

The example:

#include <vector>

template <class T>
void foo()
{
	typedef std::vector<T>::iterator iterator;
}

This warning makes sense for user-defined classes, however it is inappropriate 
for std::vector<whatever>::iterator.

--Emil


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]