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++/63506] GCC deduces wrong return type of operator*() inside template functions


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

--- Comment #3 from Steffen MÃthing <steffen.muething at iwr dot uni-heidelberg.de> ---
Ooops, yes, I did. Actually I meant to write decltype(*iterator()), but
decltype(*it()) doesn't make sense, of course.

And to avoid further confusion: The function get() in the iterator is just
there as an example for a function that avoids the problem (see comment #1).

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