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++/51951] Template function dependent name resolution fails


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51951

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|major                       |normal

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> 2012-01-22 20:35:21 UTC ---
t.cc: In instantiation of âvoid readSingle(Option<T>&) [with T = int]â:
t.cc:19:15:   required from here
t.cc:10:5: error: âreadFromStreamâ was not declared in this scope, and no
declarations were found by argument-dependent lookup at the point of
instantiation [-fpermissive]
t.cc:14:6: note: âtemplate<class T> void readFromStream(T&)â declared here,
later in the translation unit

seems correct to me, what's the bug?


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