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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|                            |2022-03-07
     Ever confirmed|0                           |1
             Status|UNCONFIRMED                 |NEW

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Confirmed.
P2128R6 says:
We propose that operator[] should be able to accept zero or more arguments,
including variadic arguments. 

Interesting how clang also rejects this.

Simplified testcase to understand the issue:
struct S {
  void operator[](int,...);
};

--- CUT ----
"auto[]..." is the same as "auto[],...." really.

As far as I read the paper, it is clear this should be accepted unless I really
miss something.

Reply via email to