This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/77449] False ambiguity for variadic function with non-deduced template parameter
- From: "rbock at eudoxos dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 02 Sep 2016 20:11:44 +0000
- Subject: [Bug c++/77449] False ambiguity for variadic function with non-deduced template parameter
- Auto-submitted: auto-generated
- References: <bug-77449-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77449
--- Comment #2 from Roland B <rbock at eudoxos dot de> ---
(In reply to Eric Gallager from comment #1)
> As a human reader who doesn't know C++ very well I'd consider it to be
> ambiguous, too... maybe as a compromise the error could be downgraded to a
> warning?
"int" is more specified than "typename Check", see also
http://stackoverflow.com/a/39295906/2173029
g++ agrees to this under pretty much all circumstances, except this one with a
parameter pack.