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]

c++/1808: Internal compiler error 390.



>Number:         1808
>Category:       c++
>Synopsis:       Internal compiler error 390.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    unassigned
>State:          open
>Class:          ice-on-illegal-code
>Submitter-Id:   net
>Arrival-Date:   Mon Jan 29 18:56:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     kanitkar@akamai.com
>Release:        gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)
>Organization:
>Environment:
Redhat Linux 6.1/Pentium III 450 MHz
>Description:
ahts.c: In function `int main()':
ahts.c:14: Internal compiler error 390.
ahts.c:14: Please submit a full bug report to `egcs-bugs@egcs.cygnus.com'.
ahts.c:14: See <URL:http://egcs.cygnus.com/faq.html#bugreport> for details.
>How-To-Repeat:
#include <fstream.h>
#include <iostream.h>
#include <map>

using namespace std;

map<int, int> dist;

int main(void)
{
	int from;

	ifstream fin2("data");
	while(fin2 >> from >> distance){
		dist.insert(pair<int, int>(from, distance));
	}
	fin2.close();

	return 0;
}
>Fix:
Variable 'distance' should be declared.
>Release-Note:
>Audit-Trail:
>Unformatted:

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