1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
// PR c++/26690 // { dg-do compile } struct A { A (int x = 6); // { dg-message "A::A\\(int\\)" } A (long long x = 12LL); // { dg-message "note" } }; void foo () { A a(6); #pragma omp parallel private (a) // { dg-error "call of overloaded" } // { dg-message "candidate" "candidate note" { target *-*-* } 14 } ; }