3 ms·
If you were worried about behavioural problems, including UB, tests would help. But alas the problem here is IFNDR [Ill-formed No Diagnostic Required] so the c
by tialaramex 4y ago
If you were worried about behavioural problems, including UB, tests would help.
But alas the problem here is IFNDR [Ill-formed No Diagnostic Required] so the compiler can't help you. All semantic constraints are your problem as the programmer, C++ decided that it's not the compiler's concern whether the program meets semantic constraints. Testing doesn't necessarily help at all, which is probably surprising.