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

            Bug ID: 96690
           Summary: [10/11 Regression] ICE in write_type since r10-6087
           Product: gcc
           Version: 10.2.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jakub at gcc dot gnu.org
  Target Milestone: ---

Since r10-6087-g991b91497fd50f6e70e5f2c0cfa96e1b74157bdc
the following testcase (distilled from firefox) ICEs with -flto
-flto-fat-objects -g:
struct A { A (int); };
template <class T> class B { T f; };
unsigned char *foo (int *, bool *, const int &);
template <typename, unsigned char *F (int *, bool *, const int &)> struct C {};
struct D { B<C<unsigned char, foo> > d; };
struct E { D e; };
struct F {};
struct G { static int bar (A, F, E, int); };

void
baz ()
{
  F f;
  G::bar (0, f, E (), 0);
}

Reply via email to