zutils-bug
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Zutils-bug] Zutils 1.9 released


From: Antonio Diaz Diaz
Subject: Re: [Zutils-bug] Zutils 1.9 released
Date: Thu, 02 Jul 2020 23:30:15 +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 just encountered an error on 64 bit sparcv9:

Thanks for reporting this, but I think you have found an error *in* 64 bit sparcv9. ;-)

/opt/SUNWspro/bin/CC -I/opt/csw/include -xO3 -m64 -xarch=sparc -c -o zupdate.o 
zupdate.cc
"zupdate.cc", line 283: Error: Overloading ambiguity between "std::string::insert(char*, 
unsigned long, char)" and "std::string::insert(unsigned long, unsigned long, char)".

I thought I had fixed this "problem" more than a month ago!
http://lists.nongnu.org:443/archive/html/zutils-bug/2020-05/msg00002.html

-  zcmp_command.resize( i ); zcmp_command.insert( 0, 1, '\'' );
+  zcmp_command.resize( i ); zcmp_command.insert( 0U, 1, '\'' );

'0' is not a valid iterator. '0U' is even less valid as a iterator. What does the Sun compiler want me to write, 'static_cast<std::string::size_type>(0)'?

Please, can you try the following line? If it works, I'll put it in the next version of zupdate.

  zcmp_command.resize( i ); zcmp_command.insert( zcmp_command.begin(), '\'' );


Best regards
Antonio.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]