https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61795
Daniel Krügler <daniel.kruegler at googlemail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |daniel.kruegler@googlemail. | |com --- Comment #1 from Daniel Krügler <daniel.kruegler at googlemail dot com> --- I agree with your analysis. I believe that the observed behaviour is due to a lack of applying yet the corresponding library defect http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#844 to libstdc++, because in an earlier working draft there was the required overload: template<class T> complex<T> pow(const complex<T>& x, int y); which had lead to the observed result.