Bug 12623 - Incoherent handling of member function template instansiations using template arguments
Summary: Incoherent handling of member function template instansiations using template...
Status: RESOLVED DUPLICATE of bug 12622
Alias: None
Product: gcc
Classification: Unclassified
Component: c++ (show other bugs)
Version: 3.3.1
: P3 minor
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-10-15 14:16 UTC by dfg
Modified: 2005-07-23 22:49 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
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 dfg 2003-10-15 14:16:01 UTC
I get a parse error in B::i() in the following code, which is inconsistent with 
not getting a parse error in B::g().

class A {
public:
  template<class T>
  void f() {}
};

class B {
public:
  void g() {
    A a;
    a.f<double>();
  }
  template<class T>
  void h() {
    A a;
    a.template f<double>();
  }
  template<class T>
  void i() {
    A a;
    a.f<double>();
  }
};
Comment 1 dfg 2003-10-15 14:51:51 UTC

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