On 2015.03.14 at 13:34 +0100, Magnus Fromreide wrote: > I have been pondering the attached program for a while and can't figure > out if it invokes undefined behaviour or what the proper output of it > should be so I am hoping someone here could help me finding the relevant > parts of the c++ standard. This isn't the right place for general C++ questions. Try a more appropriate forum like: http://stackoverflow.com/questions/tagged/c%2b%2b11 -- Markus