Test: init_order.cpp init_order.cpp:35:2: error: expected '}' at end of input 35 | } | ^ init_order.cpp:4:13: note: to match this '{' 4 | class Point { | ^ init_order.cpp: In constructor 'Point::Point(double, double, double)': init_order.cpp:7:11: error: class 'Point' does not have any field named 'scale_' 7 | : scale_(scale), | ^~~~~~ init_order.cpp:8:11: error: class 'Point' does not have any field named 'x_' 8 | x_(x), | ^~ init_order.cpp:9:13: error: class 'Point' does not have any field named 'y_' 9 | y_(y), | ^~ init_order.cpp:10:13: error: class 'Point' does not have any field named 'scale_' 10 | scale_(scale) { // BUG: scale_ used before y_ initialized | ^~~~~~ init_order.cpp:11:18: error: 'scale_' was not declared in this scope; did you mean 'scale'? 11 | y_(y * scale_) | ^~~~~~ | scale init_order.cpp:11:11: error: 'y_' was not declared in this scope; did you mean 'y'? 11 | y_(y * scale_) | ^~ | y init_order.cpp:18:24: error: a function-definition is not allowed here before '{' token 18 | void print() const { | ^ init_order.cpp:22:1: error: expected primary-expression before 'private' 22 | private: | ^~~~~~~ init_order.cpp: In member function 'int Point::main()': init_order.cpp:31:7: error: 'class Point' has no member named 'print' 31 | p.print(); | ^~~~~ init_order.cpp: At global scope: init_order.cpp:35:2: error: expected unqualified-id at end of input 35 | } | ^