On 07/17/2015 07:46 PM, Mike Stump wrote: > On Jul 17, 2015, at 2:28 AM, Mikhail Maltsev <malts...@gmail.com> wrote: >> The following code (reduced from wide-int.h) is rejected by Intel C++ >> Compiler (EDG-based): > > So, could you test this with the top of the tree compiler and file a bug > report against g++ for it, if it seems to not work right. If that bug report > is rejected, then I’d say file a bug report against clang and EDG.
In addition to usual bootstrap+regtest, I also checked that build succeeds with GCC 4.3.6 (IIRC, this is now the minimal required version) as well as with recent GCC snapshot used as stage 0. Committed as r225993. I also filed this bugreport: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66941 >> I think that the warning is correct, and "template <>" should not be used >> here. The attached patch should fix this issue. Bootstrapped and regtested >> on x86_64-linux. OK for trunk? > > Ok. Does this need to go into the gcc-5 release branch as well? If so, ok > there too. Thanks. I think there is no need for it. -- Regards, Mikhail Maltsev