[ create a new paste ] login | about

Link: http://codepad.org/xnQKPoiZ    [ raw code | output | fork ]

C++, pasted on Feb 15:
1
2
3
4
struct A {
  A() : y (3), x (42) {}
  int x, y;
};


Output:
1
2
3
4
5
cc1plus: warnings being treated as errors
t.cpp: In constructor 'A::A()':
Line 3: warning: 'A::y' will be initialized after
Line 3: warning:   'int A::x'
Line 2: warning:   when initialized here


Create a new paste based on this one


Comments: