This is an automated email from the ASF dual-hosted git repository.

bneradt pushed a commit to branch dev-1-2-7
in repository https://gitbox.apache.org/repos/asf/trafficserver-libswoc.git

commit 2cfa8fc48ce03cfb5aea9e7c16296c25676b128c
Author: Alan M. Carroll <a...@apache.org>
AuthorDate: Fri Jun 19 12:30:00 2020 -0500

    Fix ICC template default argument access bug for Errata::Annotation.
---
 code/include/swoc/Errata.h | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/code/include/swoc/Errata.h b/code/include/swoc/Errata.h
index 8fd720a..c432cc7 100644
--- a/code/include/swoc/Errata.h
+++ b/code/include/swoc/Errata.h
@@ -114,7 +114,10 @@ public:
     self_type *_prev{nullptr};
     /// @}}
     /// Intrusive list link descriptor.
-    using Linkage = IntrusiveLinkage<self_type, &self_type::_next, 
&self_type::_prev>;
+    /// @note Must explicitly use defaults because ICC and clang consider them 
inaccessible
+    /// otherwise. I consider it a bug in the compiler that a default 
identical to an explicit
+    /// value has different behavior.
+    using Linkage = swoc::IntrusiveLinkage<self_type, &self_type::_next, 
&self_type::_prev>;
 
     friend class Errata;
   };

Reply via email to