[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Zutils-bug] Zutils 1.9-rc3 released
From: |
Antonio Diaz Diaz |
Subject: |
Re: [Zutils-bug] Zutils 1.9-rc3 released |
Date: |
Tue, 19 May 2020 15:40:38 +0200 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i586; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 |
Hi Dago,
Dagobert Michelsen wrote:
I have a failing compile on Solaris 10 Sparc with Sun Studio 12:
/opt/SUNWspro/bin/CC -I/opt/csw/include -xO3 -m32 -xarch=sparc -c -o zupdate.o
zupdate.cc
"zupdate.cc", line 283: Error: Overloading ambiguity between "std::string::insert(char*,
unsigned, char)" and "std::string::insert(unsigned, unsigned, char)".
Thank you very much for reporting this.
It seems that the Sun compiler requires '0U' to resolve the ambiguity in the
call to 'insert':
- zcmp_command.resize( i ); zcmp_command.insert( 0, 1, '\'' );
+ zcmp_command.resize( i ); zcmp_command.insert( 0U, 1, '\'' );
This fix will be in the stable 1.9.
Best regards,
Antonio.