https://issues.dlang.org/show_bug.cgi?id=17726 --- Comment #2 from Vladimir Panteleev <dlang-bugzilla at thecybershadow.net> --- Works fine without "CFLAGS += -O2", so it looks like either a GCC optimizer bug, or UB in DMD. --