]> git.lyx.org Git - features.git/commit
Work around a gcc5 bug
authorGeorg Baum <baum@lyx.org>
Sun, 13 Sep 2015 08:04:16 +0000 (10:04 +0200)
committerGeorg Baum <baum@lyx.org>
Sun, 13 Sep 2015 08:04:16 +0000 (10:04 +0200)
commitc4792434683c963997acb1500ef1f2159dcdcc33
tree31e7c97586abd64bc3f1659e7240736ab3f4362f
parentacb09a3efdedc997ddbe4c174eec48cedf9f0ad7
Work around a gcc5 bug

The old code produced crashes with gcc5 caused by calling the copy
constructor (see https://bugzilla.redhat.com/show_bug.cgi?id=1260976).
This has been filed as gcc bug: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67557
It is currently being marked as invalid (they claim the code is not valid and
produces undefined behaviour), but I don't think that this is correct.
Fortunately i does not matter for us whether the old code was valid or not,
since the new version is easier to understand and works with all compilers.
src/output_xhtml.cpp