Internal compiler error 892

Andrzej Szyszkowski andrzejs@amdur.com
Fri Oct 2 07:46:00 GMT 1998


When I compile the following file on Linux 5.1 there is an Internal compiler
error 892. When I remove the extern declaration (line #4) the error does not 
occur. There was no problem with this on Linux 5.0.

-- start file.cc --
#include <stl.h>
#include <String.h>

extern vector<String>& vector<String>::operator=(vector<String> const &);

vector<String>& vector<String>::operator=( vector<String> const & )
{  
    static vector<String> w;
    return w;
}
-- end file.cc --

String.h is missing on Linux 5.1. I got String.h from the source of 
libg++.

The command line to run the compiler is

g++ -g -Wall -ansi -pedantic -I. -DLinux -D_G_NO_NRV -D_POSIX_SOURCE -D_ALL_SOURCE -c file.cc

-- 
Andrzej Szyszkowski - Software Developer             andrzejs@amdur.com
Amdur and Associates Inc.
34 St. Patrick Street, Suite 200                     tel: 416-593-2405
Toronto, Ontario M5T 1V1, Canada                     fax: 416-593-5077





More information about the Gcc-bugs mailing list