https://bugs.openldap.org/show_bug.cgi?id=9916
--- Comment #5 from glaubitz@physik.fu-berlin.de --- (In reply to Howard Chu from comment #4)
Just repeated this on gcc202. No problem.
The problem also disappeared for me after a git pull and rebuild. It seems like the issue was actually silently fixed upstream.