From 05d26551da996e71b67a8f9f85b7ce3d03d1e26d Mon Sep 17 00:00:00 2001 From: miyuki Date: Mon, 20 Jul 2015 05:30:12 +0000 Subject: [PATCH] Fix partial specialization syntax of wide int traits. gcc/ * wide-int.h (struct binary_traits): Fix partial specialization syntax. (struct int_traits): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@225993 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 5 +++++ gcc/wide-int.h | 10 ---------- 2 files changed, 5 insertions(+), 10 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 128e08a..c949811 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2015-07-20 Mikhail Maltsev + + * wide-int.h (struct binary_traits): Fix partial specialization syntax. + (struct int_traits): Likewise. + 2015-07-18 Trevor Saunders * vmsdbgout.c (vmsdbgout_decl): Change name of prototyped diff --git a/gcc/wide-int.h b/gcc/wide-int.h index d8f7b46..6e0275f 100644 --- a/gcc/wide-int.h +++ b/gcc/wide-int.h @@ -360,21 +360,18 @@ namespace wi inputs. Note that CONST_PRECISION and VAR_PRECISION cannot be mixed, in order to give stronger type checking. When both inputs are CONST_PRECISION, they must have the same precision. */ - template <> template struct binary_traits { typedef widest_int result_type; }; - template <> template struct binary_traits { typedef wide_int result_type; }; - template <> template struct binary_traits { @@ -384,14 +381,12 @@ namespace wi ::precision> > result_type; }; - template <> template struct binary_traits { typedef wide_int result_type; }; - template <> template struct binary_traits { @@ -401,7 +396,6 @@ namespace wi ::precision> > result_type; }; - template <> template struct binary_traits { @@ -412,7 +406,6 @@ namespace wi ::precision> > result_type; }; - template <> template struct binary_traits { @@ -876,7 +869,6 @@ generic_wide_int ::dump () const namespace wi { - template <> template struct int_traits < generic_wide_int > : public wi::int_traits @@ -955,7 +947,6 @@ inline wide_int_ref_storage ::wide_int_ref_storage (const T &x, namespace wi { - template <> template struct int_traits > { @@ -1142,7 +1133,6 @@ public: namespace wi { - template <> template struct int_traits < fixed_wide_int_storage > { -- 2.7.4