O
Old Wolf
Ioannis Vranos said:Canyou please point me where it is mentioned in the standard?
No, I'm not sure what to search for But the topic has been
discussed in previous threads here, maybe you could search them.
At any rate it's pretty clear that this is true (the conforming
compilers won't generate a diagnostic for my sample program
below, and JKop's program demonstrated the UB-ness)
If you mean by design, why not?
The function can not possibly return, so it would be silly
to generate a diagnostic saying 'function should return
a value'.