2 // { dg-options "-fshow-column" }
3 // GROUPS passed constructors
5 // Subject: bug in handling static const object of the enclosing class
6 // Date: Tue, 1 Sep 92 10:38:44 EDT
8 class X // { dg-message "7:X::X" } implicit constructor
17 class Y // { dg-error "1:new types may not be defined in a return type" "err" }
18 // { dg-message "1:\\(perhaps a semicolon is missing after the definition of 'Y'\\)" "note" { target *-*-* } 17 }
25 X::X( int xi ) // { dg-error "14:return type specification for constructor invalid" "err" }
26 // { dg-message "1:candidates are: X::X\\(int\\)" "note" { target *-*-* } 25 }
33 Y::Y() // { dg-error "6:no matching function for call to 'X::X\\(\\)'" }