[ create a new paste ] login | about

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

C++, pasted on Aug 24:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
struct base
{
	virtual ~base () throw () { }
};

struct derived: base
{
	~derived () { }
};

int main (int, char**)
{
	derived d;
}


Output:
1
2
Line 8: error: looser throw specifier for 'virtual derived::~derived()'
compilation terminated due to -Wfatal-errors.


Create a new paste based on this one


Comments: