This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/7472: gcc 3.1.1 has problems with STL slist
- From: pme at gcc dot gnu dot org
- To: gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, steffen dot goerzig at informatik dot uni-stuttgart dot de
- Date: 2 Aug 2002 16:09:37 -0000
- Subject: Re: c++/7472: gcc 3.1.1 has problems with STL slist
- Reply-to: pme at gcc dot gnu dot org, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, steffen dot goerzig at informatik dot uni-stuttgart dot de, gcc-gnats at gcc dot gnu dot org
Synopsis: gcc 3.1.1 has problems with STL slist
State-Changed-From-To: open->closed
State-Changed-By: pme
State-Changed-When: Fri Aug 2 09:09:36 2002
State-Changed-Why:
Thank you for your bug report.
The slist class is not part of the standard library.
It was part of the original HP library and retained by SGI.
For GCC, it has been moved out of namespace std, since it
is not standard. Also the header file has been moved.
This
#include <ext/slist>
using __gnu_cxx::slist;
int main()
{
slist<int> s;
}
works with 3.1 and later.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7472