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

Luke Dalessandro <ldalessandro at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ldalessandro at gmail dot com

--- Comment #2 from Luke Dalessandro <ldalessandro at gmail dot com> ---
Is this demonstrating the same behavior, and is clang wrong to accept?

```
template <class T, int = 1>
struct Foo
{
    Foo() = default;
    Foo(Foo const&) = delete;

    template <int I>
    Foo(Foo<T, I> const&) {}
};

template <class T, int I>
Foo(Foo<T,I>) -> Foo<T,I+1>;

Foo<int> a;
Foo b = a;
```

https://godbolt.org/z/njqPEKMM1
  • [Bug c++/82632] copy deduction ... ldalessandro at gmail dot com via Gcc-bugs

Reply via email to