[ create a new paste ] login | about

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

C++, pasted on Oct 21:
1
2
3
4
5
6
7
8
9
10
11
class A
	{
public:
	int m_int;
	};

class B: public A
	{
public:
	B():m_int(0){}
	};


Output:
1
2
3
t.cpp: In constructor 'B::B()':
Line 10: error: class 'B' does not have any field named 'm_int'
compilation terminated due to -Wfatal-errors.


Create a new paste based on this one


Comments: