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] 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



------- 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.


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