https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117825

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |needs-bisection

--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Marcus Hähnel from comment #1)
> * A template takes a function as value parameter with auto type

A pointer to a function is required rather than a reference to a function.

That is doing `T &func` worked for GCC 6+ (but fails for GCC 4.5.3-5.5.0).
Maybe a bisect for when that started to work will help the pointer case.

Reply via email to