This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/10200] Weird clash with same names in different scopes
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 22 Jan 2016 18:21:14 +0000
- Subject: [Bug c++/10200] Weird clash with same names in different scopes
- Auto-submitted: auto-generated
- References: <bug-10200-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=10200
--- Comment #28 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Another example:
template<class Tp> inline void end(Tp) { }
template <typename T> bool tnegative(const T& t) { return t.end < 0; }
pe.cc: In function âbool tnegative(const T&)â:
pe.cc:3:61: error: parse error in template argument list
template <typename T> bool tnegative(const T& t) { return t.end < 0; }
^~~~~~~