Internal Compiler Error 364

Brian Osman bosman@clariion.com
Tue Jul 14 06:35:00 GMT 1998


I'm not sure if this actually allowed in C++ (or if this has been
addressed in later snapshots, since I'm using gnu-win32 with 1.0.2) but
I got ICE 364 with the following code:

---
#include <vector>

int main()
{
	vector<int &> v;
	int x;
	int &y = x;
	v.push_back(y);
	return 0;
}
---

The problem seems to be instantiating push_back with a reference type.
Keep up the good work!

-Brian



More information about the Gcc-bugs mailing list