This non-program causes the same internal error in gcc 4.7.3 (with -std=c++0x and -std=c++11). In general, it seems to happen any time I push_back an object with an inaccessible copy constructor.
#include <vector>
class A {
A(const A&)=delete;
};
int main()
{
std::vector<A>().push_back(*(A*)0);
return 0;
}
This non-program causes the same internal error in gcc 4.7.3 (with -std=c++0x and -std=c++11). In general, it seems to happen any time I push_back an object with an inaccessible copy constructor.
#include <vector>
class A {
A(const A&)=delete;
};
int main() :vector< A>().push_ back(*( A*)0);
{
std:
return 0;
}