This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Internal compiler error using hash_map<unsigned int, double[]>
- To: gcc-bugs at gcc dot gnu dot org
- Subject: Re: Internal compiler error using hash_map<unsigned int, double[]>
- From: Philipp Frauenfelder <pfrauenf at math dot ethz dot ch>
- Date: Fri, 19 May 2000 12:40:44 +0200
- References: <20000516170111.A22589@herodot.math.ethz.ch>
Hi,
On Tue, May 16, 2000 at 05:01:11PM +0200, Philipp Frauenfelder wrote:
> today I got an internal compiler error using
>
> static hash_map<uint, real[]> xGL_H;
>
> where uint is unsigned int and real is double in a class
> declaration.
[snip]
> The file hpHP2d002.ii is in the attachment. If it helps,
> I can try to get a really small example, but I'm on
> vacation wendsday and thursday --- you would have to wait
> until friday.
I've put together a minimal example:
#include <hash_map>
class Testhash {
public:
hash_map<unsigned int, double[]> x;
};
int main (int argc, char** argv) {
return 0;
}
pfrauenf@sophokles:~/performace> g++ -v --save-temps minimal.cc -o minimal
Reading specs from /usr/local/app/gcc/2.95.2/lib/gcc-lib/sparc-sun-solaris2.5.1/2.95.2/specs
gcc version 2.95.2 19991024 (release)
/usr/local/app/gcc/2.95.2/lib/gcc-lib/sparc-sun-solaris2.5.1/2.95.2/cpp -lang-c++ -v -D__GNUC__=2 -D__GNUG__=2 -D__GNUC_MINOR__=95 -D__cplusplus -Dsparc -Dsun -Dunix -D__svr4__ -D__SVR4 -D__sparc__ -D__sun__ -D__unix__ -D__svr4__ -D__SVR4 -D__sparc -D__sun -D__unix -Asystem(unix) -Asystem(svr4) -D__EXCEPTIONS -D__GCC_NEW_VARARGS__ -Acpu(sparc) -Amachine(sparc) minimal.cc minimal.ii
GNU CPP version 2.95.2 19991024 (release) (sparc)
#include "..." search starts here:
#include <...> search starts here:
/usr/local/app/gcc/2.95.2/lib/gcc-lib/sparc-sun-solaris2.5.1/2.95.2/../../../../include/g++-3
/usr/local/app/gcc/2.95.2/include
/usr/local/app/gcc/2.95.2/lib/gcc-lib/sparc-sun-solaris2.5.1/2.95.2/../../../../sparc-sun-solaris2.5.1/include
/usr/local/app/gcc/2.95.2/lib/gcc-lib/sparc-sun-solaris2.5.1/2.95.2/include
/usr/include
End of search list.
The following default directories have been omitted from the search path:
End of omitted list.
/usr/local/app/gcc/2.95.2/lib/gcc-lib/sparc-sun-solaris2.5.1/2.95.2/cc1plus minimal.ii -quiet -dumpbase minimal.cc -version -o minimal.s
GNU C++ version 2.95.2 19991024 (release) (sparc-sun-solaris2.5.1) compiled by GNU C version 2.95.2 19991024 (release).
/usr/local/app/gcc/2.95.2/lib/gcc-lib/sparc-sun-solaris2.5.1/2.95.2/../../../../include/g++-3/stl_hashtable.h: In instantiation of `hashtable<pair<const unsigned int,double[]>,unsigned int,hash<unsigned int>,_Select1st<pair<const unsigned int,double[]> >,equal_to<unsigned int>,allocator<double[]> >':
/usr/local/app/gcc/2.95.2/lib/gcc-lib/sparc-sun-solaris2.5.1/2.95.2/../../../../include/g++-3/stl_hash_map.h:58: instantiated from `hash_map<unsigned int,double[],hash<unsigned int>,equal_to<unsigned int>,allocator<double[]> >'
minimal.cc:5: instantiated from here
/usr/local/app/gcc/2.95.2/lib/gcc-lib/sparc-sun-solaris2.5.1/2.95.2/../../../../include/g++-3/stl_hashtable.h:212: Internal compiler error.
/usr/local/app/gcc/2.95.2/lib/gcc-lib/sparc-sun-solaris2.5.1/2.95.2/../../../../include/g++-3/stl_hashtable.h:212: Please submit a full bug report.
/usr/local/app/gcc/2.95.2/lib/gcc-lib/sparc-sun-solaris2.5.1/2.95.2/../../../../include/g++-3/stl_hashtable.h:212: See <URL:http://www.gnu.org/software/gcc/faq.ht
The file minimal.ii is attached.
Regards,
--
Philipp | work | home
Frauenfelder | pfrauenf@math.ethz.ch | pfrauenf@debian.org
[PGP] | +41 1 632 60 38 | +41 1 862 73 14
Proudly running Debian GNU/Linux. See http://www.debian.org/
minimal.ii.gz