Sunday, March 13, 2011

Compiler's thoughts


result is error:
false, because:
shit happened
false, because:
failed to get bin op result type
false, because:
shit happened
false, because:
cant get condition value, because condition failed
false, because:
shit happened
false, because:
cant get left type rank
false, because:
shit happened
false, because:
cant get type
false, because:
shit happened
false, because:
no such type
cant get right type rank
false, because:
shit happened
false, because:
cant get type
false, because:
shit happened
false, because:
no such type

Tuesday, March 1, 2011

Compile-time humor


struct Govno {};
struct Konfetka {};

int main() {
Govno g;
Konfetka k(g);
}
-----------------------
main.cpp(6): error C2440: 'initializing' : cannot convert from 'Govno' to 'Konfetka'