[Bug c++/100963] [11/12 Regression] GCC 11 regression: templated constructor with std::initializer_list<T> is not selected

ppalka at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Jun 8 12:39:31 GMT 2021


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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|0                           |1
             Status|UNCONFIRMED                 |NEW
      Known to work|                            |10.3.0, 9.4.0
      Known to fail|                            |11.1.0
                 CC|                            |jason at gcc dot gnu.org,
                   |                            |ppalka at gcc dot gnu.org
   Last reconfirmed|                            |2021-06-08

--- Comment #2 from Patrick Palka <ppalka at gcc dot gnu.org> ---
Confirmed, started with r11-7289.

Reduced:

#include <initializer_list>

struct B {
  B(int) = delete;
  template<class T> B(std::initializer_list<T>);
};

int main() {
  B({0});
}


More information about the Gcc-bugs mailing list