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]

ICE in stl_uninitialized.h:65 for ss980411 (with patches)



Hi,

I am running the 980411 snapshot with patches 0264 and 0297 (Apr 98).
Uname reports:
	SunOS munagin 5.6 Generic sun4u sparc SUNW,Ultra-2

Configure says sparc-sun-solaris2.6. The binary is a shared library
version.

Anyway, compiling the simple code below produces:

/elec/ua/98/a/ajrobb/xgcs/xgcs-980411p2_shared/include/g++/
stl_uninitialized.h: In function `int * __uninitialized_cop
y<char *, int *, int>(char *, char *, int *, int *)':
/elec/ua/98/a/ajrobb/xgcs/xgcs-980411p2_shared/include/g++/
stl_uninitialized.h:65: Internal compiler error.
/elec/ua/98/a/ajrobb/xgcs/xgcs-980411p2_shared/include/g++/
stl_uninitialized.h:65: Please submit a full bug report to 
`egcs-bugs@cygnus.com'.

I have found 0411 to be quite stable apart from this. Also, the
example below can be 'fixed' by doing things like swapping
the position of the '#include <algorithm>' line or commenting
out random bits of code.

hth,
Andrew

PS Would it be possible to get the web mail program to reverse
sort the mail?

-----vv.cc-----
#include	<vector>
#include	<algorithm>
#include	<iostream>
#include	<stdlib.h>
#include	<strings.h>

int myvstrcmp(const vector < int > , const vector < int > );

int
main(void) {

	vector< vector<int> > vv;

	char buffer[1000];

	while (cin) {
		cin.getline(buffer, 1000);

		cout << "buffer [" << buffer << "]" << endl;

		int len = strlen(buffer);

		if (len > 0)
			vv.push_back(vector<int>(buffer, buffer + len + 1));
	}

	return EXIT_SUCCESS;
}


int
myvstrcmp(const vector<int> a, const vector<int> b) {

	return 2;
}

// END
-----------



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