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

Patrick Palka <ppalka at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |accepts-invalid
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2023-05-16
     Ever confirmed|0                           |1
                 CC|                            |ppalka at gcc dot gnu.org

--- Comment #1 from Patrick Palka <ppalka at gcc dot gnu.org> ---
Confirmed, this seems to reduce to the accepts-invalid testcase:

#include <initializer_list>

struct vector {
  vector(std::initializer_list<int>); // #1
  vector(int); // #2
};

void f(vector);

int main() {
  f({.blah = 1}); // incorrectly accepted and resolves to #2
}

Not a regression.

Reply via email to