https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99610
--- Comment #5 from Jakub Jelinek ---
And if that is the case, there is also easy workaround, just use unsigned int
Hash instead of unsigned Hash.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99610
Jakub Jelinek changed:
What|Removed |Added
CC||jakub at gcc dot gnu.org
--- Comment #4
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99610
Richard Biener changed:
What|Removed |Added
Keywords||rejects-valid
Status|UNCONF
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99610
--- Comment #2 from Christian Schüler ---
gcc version 8.4.0 (Ubuntu 8.4.0-1ubuntu1~18.04)
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99610
--- Comment #1 from Christian Schüler ---
There is a workaround
declaring the function Hash with trailing return will make the error go away.
template< typename X >
auto Hash( const X &arg ) const -> unsigned
{ ... }