https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93140
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jakub at gcc dot gnu.org
Target Milestone|--- |8.4
Summary|Segfault in cc1plus on |[8/9/10 Regression]
|incorrect decltype among |Segfault in cc1plus on
|function args |incorrect decltype among
| |function args
--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
int
bar ()
{
return 42;
}
template <typename... R>
void foo (R... r, decltype (bar (r...)) x = 0) {}
int
main ()
{
foo (3);
}
ICEs starting with r140120.
Note, clang emits there a mangled name that c++filt can't demangle:
_Z3fooIJEEvDpT_DTcl3barspfL0p_EE
which llvm-cxxfilt demangles as void foo<>(decltype(bar(fp...)))