[Bug c++/10959] New: parse error before `>' token

boris@kolpackov.net gcc-bugzilla@gcc.gnu.org
Fri May 23 22:40:00 GMT 2003


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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

           Summary: parse error before `>' token
           Product: gcc
           Version: 3.3
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: boris@kolpackov.net
                CC: gcc-bugs@gcc.gnu.org
 GCC build triplet: i386-linux-gnu
  GCC host triplet: i386-linux-gnu
GCC target triplet: i386-linux-gnu

Compiling the following code snippet

struct C
{
  template <typename A>
  void a ()
  {
  }
};


template <typename B>
void
b()
{
  C c;
  c.a<int> ();
}

results in the following error

bash-2.05a$ g++-3.3 -c ./test.cpp
test.cpp: In function `void b()':
test.cpp:15: error: parse error before `>' token



------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.



More information about the Gcc-bugs mailing list