[Bug c++/110689] problem of initializer list
pinskia at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sun Jul 16 16:35:02 GMT 2023
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110689
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Testcase that is complete:
```
#include <initializer_list>
struct M {
operator char() { return 'a'; }
} m;
int flag;
struct S {
S(std::initializer_list<int>) { flag = 1; }
S(std::initializer_list<float>) { flag = 2; }
};
S s = { m };
```
More information about the Gcc-bugs
mailing list