blob: 8a8f22afc0e8418d68d8f02921f8ca15e20c5394 [file] [log] [blame]
// { dg-options "-fshow-column -ansi -pedantic-errors -Wno-long-long" }
// PR c++/21908
struct virt { virt () {} virt (int i) {} };
struct der : public virtual virt { // { dg-message "8:der::der|candidate expects" }
der (int i) : virt(i) {} // { dg-message "3:der::der|candidate expects" }
};
struct top : public der {
top () {} // { dg-bogus "der\\(const" }
};
// { dg-error "10:no matching function for call to 'der" "" { target *-*-* } 9 }