This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/11158] 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 19:05:54 -0000
- Subject: [Bug c++/11158] Annoying warning message
- References: <20030611184627.11158.emild@collectivestudios.com>
- 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
------- Additional Comments From emild@collectivestudios.com 2003-06-11 19:05 -------
Subject: RE: Annoying warning message
I thought that Comeau did not have a problem with it and so I thought it is
not allowed to specialize the std::vector class template.
It turns out that I got confused, and that in Comeau it is an error even,
and a quick check with the standard confirms that you can specialize
std::vector, therefore typename is required.
I apologize for bugging you with this.
Thanks,
Emil
-----Original Message-----
From: pinskia@physics.uc.edu [mailto:gcc-bugzilla@gcc.gnu.org]
Sent: Wednesday, June 11, 2003 11:52 AM
To: emild@collectivestudios.com
Subject: [Bug c++/11158] 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
pinskia@physics.uc.edu changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
------- Additional Comments From pinskia@physics.uc.edu 2003-06-11 18:52
-------
Yes it does make sense because according to the C++ standard, it does not
know if
std::vector<T>::iterator is really a type because of the template (and
because you can still
overload the class for a certain T and have iterator be a `static int') and
a future version of
gcc (3.4) will not compile this code.
------- You are receiving this mail because: -------
You reported the bug, or are watching the reporter.