https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61213
--- Comment #2 from tower120 <tower120 at gmail dot com> --- (In reply to Jonathan Wakely from comment #1) > Using -fno-indirect-inlining gives the correct result I not see this with -std=c++11 -O2 -fno-indirect-inlining -Wall -pedantic -pthread http://coliru.stacked-crooked.com/a/e7c9408daef01448