https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121329
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |error-recovery,
| |ice-on-invalid-code
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
The ICE is wrong but the original error message is correct.
Here is the error message from clang:
```
<source>:13:5: error: 'decltype(auto)' in return type deduced as 'const int &'
here but deduced as 'const nullopt_t' in earlier return statement
13 | return *largestElementIt;
| ^
<source>:18:20: note: in instantiation of function template specialization
'findLargest<std::vector<int>>' requested here
18 | auto largest = findLargest(numbers);
| ^
```