This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/11158] New: Annoying warning message
- From: "emild at collectivestudios dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 11 Jun 2003 18:46:28 -0000
- Subject: [Bug c++/11158] New: Annoying warning message
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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