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++/61400] suffix return type doesn't work for template member functions with explict specialization


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

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |DUPLICATE

--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Yichao Yu from comment #1)
> 2. The function used in decltype have to be explicitly specialized using at
> least one of the template parameter from the other function. (i.e. there
> won't be any error if I replace `decltype(a<i>())` with `decltype(a<0>())`

That has an explicit template argument list, that's not the same as "explicitly
specialized"

This was fixed a few days ago anyway.

*** This bug has been marked as a duplicate of bug 57543 ***


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