From 4b6e764c462047561ddc32b0638c21d773a4fbe4 Mon Sep 17 00:00:00 2001 From: whitequark Date: Tue, 26 Jan 2021 17:42:23 +0000 Subject: cxxrtl: do not use `->template` for non-dependent names. This breaks build on MSVC but not GCC/Clang. --- backends/cxxrtl/cxxrtl.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'backends/cxxrtl/cxxrtl.h') diff --git a/backends/cxxrtl/cxxrtl.h b/backends/cxxrtl/cxxrtl.h index 0a6bcb849..0e55c46c2 100644 --- a/backends/cxxrtl/cxxrtl.h +++ b/backends/cxxrtl/cxxrtl.h @@ -1217,49 +1217,49 @@ value xnor_ss(const value &a, const value &b) { template CXXRTL_ALWAYS_INLINE value shl_uu(const value &a, const value &b) { - return a.template zcast().template shl(b); + return a.template zcast().shl(b); } template CXXRTL_ALWAYS_INLINE value shl_su(const value &a, const value &b) { - return a.template scast().template shl(b); + return a.template scast().shl(b); } template CXXRTL_ALWAYS_INLINE value sshl_uu(const value &a, const value &b) { - return a.template zcast().template shl(b); + return a.template zcast().shl(b); } template CXXRTL_ALWAYS_INLINE value sshl_su(const value &a, const value &b) { - return a.template scast().template shl(b); + return a.template scast().shl(b); } template CXXRTL_ALWAYS_INLINE value shr_uu(const value &a, const value &b) { - return a.template shr(b).template zcast(); + return a.shr(b).template zcast(); } template CXXRTL_ALWAYS_INLINE value shr_su(const value &a, const value &b) { - return a.template shr(b).template scast(); + return a.shr(b).template scast(); } template CXXRTL_ALWAYS_INLINE value sshr_uu(const value &a, const value &b) { - return a.template shr(b).template zcast(); + return a.shr(b).template zcast(); } template CXXRTL_ALWAYS_INLINE value sshr_su(const value &a, const value &b) { - return a.template sshr(b).template scast(); + return a.sshr(b).template scast(); } template -- cgit v1.2.3