blob: 58a5bf4eac0f5f7ed4e3ffc715d75b36c0a4ca92 [file] [log] [blame]
// { dg-do compile }
// GROUPS passed old-abort
class internal { // { dg-message "internal::internal|candidate expects|no known conversion" }
int field;
int anotherfield;
};
class bug { // { dg-message "bug::bug|candidate expects" }
internal* numbers;
bug(int size);
};
bug::bug(int size) // { dg-message "bug::bug|candidate expects" }
{
numbers = new internal(size * size);// { dg-error "no match" }
}
int
main()
{
bug test; // { dg-error "no match" }
}