[Bug c++/103460] New: GCC rejected operator[](auto[]...) after P2128

hewillk at gmail dot com gcc-bugzilla@gcc.gnu.org
Mon Nov 29 02:36:42 GMT 2021


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

            Bug ID: 103460
           Summary: GCC rejected operator[](auto[]...) after P2128
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: hewillk at gmail dot com
  Target Milestone: ---

This should be well-formed after P2128, please correct me if I am wrong.

struct S {
  void operator[](auto[]...);
};

https://godbolt.org/z/renf6nePj


More information about the Gcc-bugs mailing list