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

            Bug ID: 106191
           Summary: ICE: Segmentation fault signal terminated program
                    cc1plus
           Product: gcc
           Version: 13.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gs...@t-online.de
  Target Milestone: ---

It seems to have started with r13 before 20220508 :


$ cat z1.cc
class C
{
  int a = 0;
  constexpr auto b() const noexcept
  {
    return a;
  }
public:
  constexpr operator auto() const noexcept
  {
    return [*]a;
  }
};


$ gcc-13-20220703 -c z1.cc
z1.cc: In member function 'constexpr C::operator auto() const':
z1.cc:11:13: error: expected identifier before '*' token
   11 |     return [*]a;
      |             ^
z1.cc: In lambda function:
z1.cc:11:15: error: expected '{' before 'a'
   11 |     return [*]a;
      |               ^
g++: internal compiler error: Segmentation fault signal terminated program
cc1plus

Reply via email to