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]

Internal compiler error


EGCS is great!  Thanks for your good work!

And now, the bad news.  The following program generates an internal 
compiler error:

-------------------------------------------------------------------------------
#include <map>
 
template<class Arg>
class Error {
	typedef thingo<map<string,int>::iterator,int> iter;
};
-------------------------------------------------------------------------------

Here's some of the output from g++ --verbose:

/uns/egcs-1.1b/lib/gcc-lib/sparc-sun-solaris2.5.1/egcs-2.91.57/cc1plus /var/tmp/ccBDkk1p.ii -quiet -dumpbase test.cc -version -o /var/tmp/cc6Ydwq3.s
GNU C++ version egcs-2.91.57 19980901 (egcs-1.1 release) (sparc-sun-solaris2.5.1) compiled by GNU C version egcs-2.91.57 19980901 (egcs-1.1 release).
test.cpp:5: Internal compiler error.
test.cpp:5: Please submit a full bug report to `egcs-bugs@cygnus.com'.

Please let me know if this bug has already been addressed.  Oh, I have one
clue, too: the bug seems to be related to the fact that the class 'string'
hasn't been defined.  The internal error disappears if you change 'string'
to something like 'int'.

Thanks again!

-- 
Craig.              http://www.cs.washington.edu/homes/csk/
Counterfactuals: what would the world be like without them?


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