Control: tags -1 + patch On Fri, 04 May 2018 12:23:11 +0000 Matthias Klose <[email protected]> wrote: > Package: src:prime-phylo > Version: 1.0.11-4 > Severity: normal > Tags: sid buster > User: [email protected] > Usertags: ftbfs-gcc-8
> /<<PKGBUILDDIR>>/src/cxx/libraries/prime/PrimeOptionMap.hh:162:33: error: > 'std::ostream& beep::operator<<(std::ostream&, const beep::PrimeOptionMap&)' > should have been declared inside 'beep' > /<<PKGBUILDDIR>>/src/cxx/libraries/prime/PrimeOptionMap.hh:164:29: error: > 'std::ostream& beep::operator<<(std::ostream&, const beep::PrimeOption&)' > should have been declared inside 'beep' If I just remove 'beep::' from the lines in question, the package compiles with GCC-8 (and continues to compile with GCC-7). Patch attached. Cheers, Juhani
Description: 'beep::' is redundant inside 'namespace beep' block Fixes FTBFS with GCC 8: PrimeOptionMap.hh:162:33: error: 'std::ostream& beep::operator<<(std::ostream&, const beep::PrimeOptionMap&)' should have been declared inside 'beep' Author: Juhani Numminen <[email protected]> Bug-Debian: https://bugs.debian.org/897837 Last-Update: 2018-05-22 --- a/src/cxx/libraries/prime/PrimeOptionMap.hh +++ b/src/cxx/libraries/prime/PrimeOptionMap.hh @@ -158,9 +158,9 @@ bool parseOptions(int& argIndex, int argc, char **argv); //! IO - friend std::ostream& beep::operator<<(std::ostream& o, + friend std::ostream& operator<<(std::ostream& o, const PrimeOptionMap& pom); - friend std::ostream& beep::operator<<(std::ostream& o, + friend std::ostream& operator<<(std::ostream& o, const PrimeOption& po); static std::string formatMessage(std::string opt, std::string usageText);

