[Bug c++/77449] False ambiguity for variadic function with non-deduced template parameter

rbock at eudoxos dot de gcc-bugzilla@gcc.gnu.org
Fri Sep 2 20:11:00 GMT 2016


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.


More information about the Gcc-bugs mailing list