This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/81486] Class template argument deduction fails with (), succeeds with {}


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

--- Comment #2 from Vittorio Romeo <vittorio.romeo at outlook dot com> ---
Here's a snippet that seems to reproduce this bug, even without an explicit
deduction guide:

    template <typename... Ts>
    struct foo
    {
        template <typename... Us>
        foo(Us...) { }
    };

    int main()
    {
        auto f = foo();
    }

On godbolt:
https://godbolt.org/g/CgqLq5

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]