[Bug c++/82099] internal compiler error: in type_throw_all_p, at cp/except.c:1186 when using a function pointer for templated predicate

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Sep 4 16:25:00 GMT 2017


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82099

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-09-04
                 CC|                            |jakub at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Reduced testcase (fails with all of -std=c++{11,14,17}, just the ICE is
different with c++17):
template <typename T, typename U>
void bar (T x, U u)
{
  u (x);
}

template <typename T>
void baz (T t) noexcept (noexcept (t));

void
foo (int x)
{
  bar (x, baz<int>);
}


More information about the Gcc-bugs mailing list