1 // g++ 1.37.1 bug 900407_01
3 // g++ fails to flag errors for uses of anachronistic features such as the
4 // invocation of a base class constructor in a ctor-initializer list without
5 // explicitly giving its name.
7 // Errors should probably be issued for such usage unless the -traditional
10 // Warnings are however issued.
12 // Cfront 2.0 flags such usage as an error when the +p (pure-language) option
15 // Cfront 2.0 passes this test.
17 // keywords: anachronism, inheritance, initialization, mem-initializer
27 struct s1 : public s0 {
33 s1::s1() : () { // ERROR - anachronism used
36 int main () { return 0; }