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

            Bug ID: 103455
           Summary: internal compiler error: in dependent_type_p, at
                    cp/pt.c:27057
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: stha09 at googlemail dot com
  Target Milestone: ---

Reduced testcase:

class raw_ptr {
  template <typename U> operator U *();
};
class GLES2Interface class ScopedGLuint {
  typedef void (GLES2Interface::*DeleteFunc)();
  ScopedGLuint(){gl_->*delete_func_} raw_ptr gl_;
  DeleteFunc delete_func_;
};

Original code is here:
https://chromium.googlesource.com/chromium/src/+/refs/heads/main/gpu/command_buffer/client/gl_helper.h#49

It seems GCC doesn't like the function pointer. There are some other locations
where the same happens in the Chromium codebase.

Reply via email to