[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 { ... }

[Bug c++/99610] New: 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 Bug ID: 99610 Summary: GCC thinks member function template is a deduction guide Product: gcc Version: 8.4.0 Status: UNCONFIRMED Severity: normal Prior