"with -O0, however, things work as expected." I think you've answered your own question. I compliment you on your very detailed bug hunting. -Nick [ message continues ]