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++/81045] [7 Regression] return type deduction causes template function call failure


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

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Somehow GCC is deciding that easyObjects->begin() and end() are dependent types
so you need to use the template keyword for the call to cast.

That is:
auto casted = obj.template cast<T>();

I don't know if GCC is correct here or not.

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