Hi, I have created a patch set at
https://anonscm.debian.org/cgit/debian-med/theseus.git/tree/debian/patches/gcc-7.patch which enabled me to build theseus with gcc-7. Feel free to take these over in your next release. Kind regards Andreas. -- http://fam-tille.de