[Bug c++/99610] GCC thinks member function template is a deduction guide

2021-03-16 Thread jakub at gcc dot gnu.org via Gcc-bugs
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.

[Bug c++/99610] GCC thinks member function template is a deduction guide

2021-03-16 Thread jakub at gcc dot gnu.org via Gcc-bugs
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

[Bug c++/99610] GCC thinks member function template is a deduction guide

2021-03-16 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99610 Richard Biener changed: What|Removed |Added Keywords||rejects-valid Status|UNCONF

[Bug c++/99610] GCC thinks member function template is a deduction guide

2021-03-15 Thread gcchelp.5.adept at 0sg dot net via Gcc-bugs
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)

[Bug c++/99610] GCC thinks member function template is a deduction guide

2021-03-15 Thread gcchelp.5.adept at 0sg dot net via Gcc-bugs
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 { ... }