This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/81486] Class template argument deduction fails with (), succeeds with {}
- From: "vittorio.romeo at outlook dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 11 Nov 2017 14:03:57 +0000
- Subject: [Bug c++/81486] Class template argument deduction fails with (), succeeds with {}
- Auto-submitted: auto-generated
- References: <bug-81486-4@http.gcc.gnu.org/bugzilla/>
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