alexfh wrote:

We've started seeing `call to constructor of 'SomeType' is ambiguous` errors 
after this patch on some code. In the case I closely inspected the code looks 
like https://gcc.godbolt.org/z/3MbWf69cx:

```
#include <vector>
struct A {
    A() {}
};

struct B {
    explicit B(A);
    explicit B(std::vector<A>);
};

struct C {
    B b;
    C() : b({A()}) {}
};
```

Is the new error expected? (I would totally agree with it, just making sure. 
And the behavior is now different to that of GCC trunk.)

https://github.com/llvm/llvm-project/pull/77768
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to