1 // { dg-options "-std=c++98 -pedantic-errors" } 2 // { dg-do assemble } 3 4 class error { 5 public: error(int)6 error(int) {} 7 }; 8 9 class foo { 10 const error x = 1; // { dg-error "" } initialization of non-static data member 11 }; 12 13 14