https://gcc.gnu.org/bugzilla/show_bug.cgi?id=47488
sergey.ignatchenko at ithare dot com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |sergey.ignatchenko at ithare dot c | |om --- Comment #12 from sergey.ignatchenko at ithare dot com --- FWIW, the same test case still fails under GCC 7.2.0. Moreover, I ran into something-very-similar when playing with constexpr-function-of-string-literal-as-a-template-parameter; IMO, with advent of C++17 and constexpr functions this bug started to be significantly more important - please consider raising priority. Oh, and it does compile under Clang (at least Apple Clang 9.0.0).