https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120686
Alex <waffl3x at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://github.com/itanium- | |cxx-abi/cxx-abi/issues/175 --- Comment #3 from Alex <waffl3x at gcc dot gnu.org> --- https://godbolt.org/z/Wc3dYWzhP ``` template<typename... Args> Args...[0] f() { return {}; } void g() { f<int>(); } ``` <source>: In instantiation of 'Args ...[0] f() [with Args = {int}]': <source>:2:12: sorry, unimplemented: mangling type pack index 2 | Args...[0] f() { return {}; } | ^ Unfortunately it looks like this is related to an ongoing ABI issue so I won't be looking at fixing it for now. We don't emit the sorry for this case and we certainly shouldn't be ICEing so it's still a distinct bug IMO. I'm reluctant to say this as there might be subtle differences, but I believe specifying `auto&&` for the return type should be a sufficient workaround.