This is the mail archive of the
mailing list for the GCC project.
Re: Bug found in STL?
- To: gcc at gcc dot gnu dot org
- Subject: Re: Bug found in STL?
- From: Loren James Rittle <rittle at latour dot rsch dot comm dot mot dot com>
- Date: Wed, 23 May 2001 17:12:58 -0500 (CDT)
- Cc: eric dot b dot lemings at lmco dot com
- Organization: Networks and Infrastructure Lab (IL02/2240), Motorola Labs
[Please report bugs to gcc-bugs not gcc. Better yet, use the GNATS
interface at http://gcc.gnu.org]
> I'm fairly sure this is legal C++ code. Try compiling this source with
> gcc-2.95.3 and have a look at the errors. Is this a bug?
Thank you for the bug report. I see nothing that makes me think the
code is illegal (with a minor namespace issue resolved that was not
strictly enforced in gcc 2.95.3). I have no idea if anyone is
actively working on fixing bugs with 2.95.3.
This code works fine with prerelease 3.0 (I only added the ``using
namespace std;'' but the other obvious variation of adding std:: to
list<bar*> works as well):
typedef void (*destroy) (void* ptr);
using namespace foo;
using namespace std;