From 4ae06c3dbe5fb2c4d345060b1ba9cd34b2dc7d37 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 | 8 ++++++++ gcc/wide-int.h | 10 ---------- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 7fb0538..45ae071 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,11 @@ +2015-10-19 H.J. Lu + + Backport from mainline + 2015-07-20 Mikhail Maltsev + + * wide-int.h (struct binary_traits): Fix partial specialization syntax. + (struct int_traits): Likewise. + 2015-10-16 Richard Sandiford PR middle-end/66311 diff --git a/gcc/wide-int.h b/gcc/wide-int.h index 46f4545..9a71c4f 100644 --- a/gcc/wide-int.h +++ b/gcc/wide-int.h @@ -365,21 +365,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 { @@ -389,14 +386,12 @@ namespace wi ::precision> > result_type; }; - template <> template struct binary_traits { typedef wide_int result_type; }; - template <> template struct binary_traits { @@ -406,7 +401,6 @@ namespace wi ::precision> > result_type; }; - template <> template struct binary_traits { @@ -417,7 +411,6 @@ namespace wi ::precision> > result_type; }; - template <> template struct binary_traits { @@ -881,7 +874,6 @@ generic_wide_int ::dump () const namespace wi { - template <> template struct int_traits < generic_wide_int > : public wi::int_traits @@ -960,7 +952,6 @@ inline wide_int_ref_storage ::wide_int_ref_storage (const T &x, namespace wi { - template <> template struct int_traits > { @@ -1147,7 +1138,6 @@ public: namespace wi { - template <> template struct int_traits < fixed_wide_int_storage > { -- 2.4.3