Comment 7 for bug 1165732

Revision history for this message
John-Paul Gignac (jp-gignac) wrote :

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;
}