1 2 3 4 5 6 7 8 9 10
// { dg-do assemble } struct A { A(); A(A); // { dg-error "" } copy ctor must take reference }; int main() { A a; A b(a); // causes compiler segfault }