]> Savannah Git Hosting - gnulib.git/commitdiff
oset-c++: Avoid compilation error with nvc++ 22.1.
authorBruno Haible <bruno@clisp.org>
Sat, 15 Jan 2022 18:52:28 +0000 (19:52 +0100)
committerBruno Haible <bruno@clisp.org>
Sat, 15 Jan 2022 18:52:28 +0000 (19:52 +0100)
* lib/gl_oset.hh: With EDG C++ compilers, avoid 'friend'.

ChangeLog
lib/gl_oset.hh

index d49794f43391cc87a861165463982e34bab209d9..0eef9f4c9adcfd24f3baacae1094610480b70ef4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2022-01-15  Bruno Haible  <bruno@clisp.org>
+
+       oset-c++: Avoid compilation error with nvc++ 22.1.
+       * lib/gl_oset.hh: With EDG C++ compilers, avoid 'friend'.
+
 2022-01-14  Paul Eggert  <eggert@cs.ucla.edu>
 
        nstrftime: pacify nvc 22.1 unreachable statement
index d1bb4893f6074e708eb9fe647a90f9a08c876a94..4fae4eb4d61a643cfc2f563df5c0625730b98cea 100644 (file)
@@ -153,7 +153,7 @@ public:
     ~iterator ()
       { gl_oset_iterator_free (&_state); }
 
-  #if defined __xlC__ || defined __HP_aCC || defined __SUNPRO_CC
+  #if defined __xlC__ || defined __HP_aCC || defined __SUNPRO_CC || defined __EDG__
   public:
   #else
   private: