// PR c++/79228 // { dg-do compile { target c++14 } } // { dg-options "-Wpedantic" } template struct same; template struct same { }; int main() { same{}; // { dg-warning "literal operator" } // { dg-message "complex_literals" "" { target *-*-* } .-1 } // { dg-message "built-in" "" { target *-*-* } .-2 } same{}; // { dg-warning "literal operator" } // { dg-message "complex_literals" "" { target *-*-* } .-1 } // { dg-message "built-in" "" { target *-*-* } .-2 } same{}; // { dg-warning "literal operator" } // { dg-message "complex_literals" "" { target *-*-* } .-1 } // { dg-message "built-in" "" { target *-*-* } .-2 } same{}; // { dg-warning "literal operator" } // { dg-message "complex_literals" "" { target *-*-* } .-1 } // { dg-message "built-in" "" { target *-*-* } .-2 } }