This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/60608] Template argument problem
- From: "paolo.carlini at oracle dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 13 Jul 2014 20:35:04 +0000
- Subject: [Bug c++/60608] Template argument problem
- Auto-submitted: auto-generated
- References: <bug-60608-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60608
Paolo Carlini <paolo.carlini at oracle dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC|volumedriverteam@cloudfound |
|ers.com |
--- Comment #2 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Thus boils down to:
template<typename... Args>
void
wrapper(void (*f)(Args...), Args...);
void myfun(int);
void
test()
{
const int b = 0;
wrapper<const int>(myfun, b);
}
where a non-variadic version is fine. Figuring out where the cv-qualifier is
treated differently in the two cases should be relatively easy...