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 980711


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

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