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++/60608] Template argument problem


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...


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