[ create a new paste ] login | about

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

C++, pasted on Jan 17:
1
2
3
4
5
6
7
struct Base;
struct Derived;

struct T {
   T(Derived& d) : lol(static_cast<Base>(d)) {};
   Base lol;
};


Output:
1
2
Line 6: error: field 'lol' has incomplete type
compilation terminated due to -Wfatal-errors.


Create a new paste based on this one


Comments: