From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Artem Khodush" To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org Subject: Re: c++/3012: c++ bug Date: Fri, 01 Jun 2001 03:46:00 -0000 Message-id: <20010601104601.18523.qmail@sourceware.cygnus.com> X-SW-Source: 2001-06/msg00005.html List-Id: The following reply was made to PR c++/3012; it has been noted by GNATS. From: "Artem Khodush" To: "Robert B. Lowrie" , Cc: , Subject: Re: c++/3012: c++ bug Date: Fri, 1 Jun 2001 14:28:40 +0400 Robert B. Lowrie wrote: > If a templated member function `foo' of even a non-templated class > `A' is called within a templated class `B' with the syntax > foo(), the compiler gives a syntax error. > // when B is a template, compile fails on this line: > a.foo(); Not a bug. According to c++ grammar rules, '<' here means less-then operator. You should write a.template foo().