This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Internal compiler error
- To: gcc-bugs at gcc dot gnu dot org
- Subject: Re: Internal compiler error
- From: Giles Constant <gilesc at ftech dot net>
- Date: Mon, 10 Jul 2000 19:39:39 +0100 (BST)
- Reply-To: gilesc at ftech dot net
Update :
you can reduce down to this :-)
-----BEGIN-----
#include <map>
struct map<int,int>::iterator itor;
-----END-----
On Mon, 10 Jul 2000, Giles Constant wrote:
> Date: Mon, 10 Jul 2000 19:35:26 +0100 (BST)
> From: Giles Constant <gilesc@ftech.net>
> To: gcc-bugs@gcc.gnu.org
> Subject: Internal compiler error
>
> Hi hackers,
>
> I hit an internal compiler error in a rather large program, but
> fortunately managed to strip down to the exact problem which seems to be
> in instantiating const iterator structs for a map. I'm running
> 2.95.2 under linux/i386. Not sure which version of stl it is, but I can
> find out if you need it.
>
> Have fun!
>
> Try compiling the following with g++ -c -Wall foo.cpp :
>
> ---BEGIN---
>
> #include <map>
> #include <string>
>
> const map<string, string> mymap;
>
> void foo(const string& bar) {
> const struct map<string, string>::iterator itor =
> mymap.find(bar);
> }
>
> ---END---
>
> --
> Giles Constant <gilesc@ftech.net> - Network Operations
> Frontier Internet Services Limited http://www.frontier-internet.ltd.uk/
> Tel: +44 (0)20 7510 4700 Fax: +44 (0)20 7531 9930
> All statements made are subject to Frontier's Terms and Conditions of
> Business which are available upon request.
>
>
--
Giles Constant <gilesc@ftech.net> - Network Operations
Frontier Internet Services Limited http://www.frontier-internet.ltd.uk/
Tel: +44 (0)20 7510 4700 Fax: +44 (0)20 7531 9930
All statements made are subject to Frontier's Terms and Conditions of
Business which are available upon request.