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

            Bug ID: 90832
           Summary: An ICE
           Product: gcc
           Version: 10.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: zhonghao at pku dot org.cn
  Target Milestone: ---

My gcc is 10.0.0, and the code is:

class B
{
 template <typename T> friend struct A;
 B() {}
};

template <typename T>
struct A
{
 A() noexcept(sizeof(B{})) { }
};

struct C
{
 C()
 {
 static_assert( sizeof(A<int>{}), "" );
 }
};

The error message:

gcc: internal compiler error: Segmentation fault signal terminated program
cc1plus
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://gcc.gnu.org/bugs/> for instructions.

Reply via email to