Bug 10959 - parse error before `>' token
Summary: parse error before `>' token
Status: RESOLVED DUPLICATE of bug 795
Alias: None
Product: gcc
Classification: Unclassified
Component: c++ (show other bugs)
Version: 3.3
: P2 normal
Target Milestone: 3.4.0
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-05-23 22:26 UTC by Boris Kolpackov
Modified: 2005-07-23 22:49 UTC (History)
1 user (show)

See Also:
Host: i386-linux-gnu
Target: i386-linux-gnu
Build: i386-linux-gnu
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Boris Kolpackov 2003-05-23 22:26:05 UTC
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
Comment 1 Andrew Pinski 2003-05-23 22:51:57 UTC
This is fixed on the mainline (20030523), it is not going to be fixed for 3.3.x because it is 
fixed by the new parser.
Comment 2 Wolfgang Bangerth 2003-05-24 00:00:32 UTC
Closing the PR was ok since this is not a regression. Versions prior to
present mainline require you to write
  c.template a<int> ()
instead.

W.
Comment 3 Wolfgang Bangerth 2003-07-17 23:16:27 UTC
Reopen all these, because they are duplicates...
Comment 4 Wolfgang Bangerth 2003-07-17 23:24:27 UTC
...of PR 795.

*** This bug has been marked as a duplicate of 795 ***