This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/81045] [7 Regression] return type deduction causes template function call failure
- From: "pinskia at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 09 Jun 2017 23:21:14 +0000
- Subject: [Bug c++/81045] [7 Regression] return type deduction causes template function call failure
- Auto-submitted: auto-generated
- References: <bug-81045-4@http.gcc.gnu.org/bugzilla/>
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.