See the following bug: https://github.com/mstorsjo/fdk-aac/issues/41 Fraunhofer has not yet attempted to fix the bug, but we can fix this by adding -std=c++98 until they make their code compatible with the C++14 standard.
Created attachment 437418 [details, diff] Patch to enable building fdk-aac with GCC6 and no standard switch.
(In reply to Aric Belsito from comment #1) > Created attachment 437418 [details, diff] [details, diff] > Patch to enable building fdk-aac with GCC6 and no standard switch. I see that upstream just took the shortcut route and added -std=c++98, which sucks of course and is not in line with our policy on C++, which aims to be as -std= agnostic as possible for C++, in order to not upset dependant packages. Aric, I might still merge your patches, because I prefer your solution as it remains compatible with C++14.
@Aric, thanks for the patch, I believe this is the way we should fix C++98 -> C++14 bugs, by making packages -std=c++{98,14} agnostic. commit f935b696c978db5b42158ec93896ca4bf3400bf2 Author: David Seifert <soap@gentoo.org> Date: Wed Sep 14 20:56:58 2016 +0200 media-libs/fdk-aac: Allow for compiling with GCC 6 Gentoo-bug: 585556 * EAPI=6