This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Internal compiler error 980711
- To: egcs-bugs at egcs dot cygnus dot com
- Subject: Internal compiler error 980711
- From: Diego Dainese <ddainese at dsi dot unive dot it>
- Date: 01 Oct 1999 16:34:21 +0200
Hi,
this code lead to an internal compiler error:
--------------------------- test.cc ------------------------------------
#include <string>
struct field {
std::string header;
std::string body;
};
typedef std::vector<struct field> Headers;
int main(void)
{
return 0;
}
--------------------------- test.cc ------------------------------------
$ g++ --version
egcs-2.91.66
$ g++ test.cc
test.cc:8: Internal compiler error 980711.
test.cc:8: Please submit a full bug report to `egcs-bugs@egcs.cygnus.com'.
test.cc:8: See <URL:http://egcs.cygnus.com/faq.html#bugreport> for details.
$
If I add the missing include (vector) the problem goes away.
+++
I'm using SuSE 6.2 (Linux 2.2.12) and libgpp-990708-6.rpm. Sorry, but
I cannot test the problem with newer compilers.
I hope this will be useful,
bye,
--
Diego Dainese