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 364


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


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