Menu

#9 Certain template methods are not reported properly

closed-fixed
nobody
None
5
2012-02-25
2012-02-22
No

This tracker is written against changeset 51 version of parser.

Header file:

class Sample07Class {
private:
template <typename T> int* tFunc( int count );
};

template <typename T> int* Sample07Class::tFunc( int count ) {
if (count == 0) {
return NULL;
}
return NULL;
}

Parse and show() yields:

class Sample07Class
Inherits:
{
public
<Methods>
method name: tFunc (template <typename T > int * Sample07Class : : tFunc ( int count ) { if ( count = = 0 ) {)
returns: int
number arguments: 1
protected
private
<Methods>
method name: tFunc (template <typename T > int * tFunc ( int count ) ;)
returns: int
number arguments: 1
}

A duplicate template function is reported that is always public and non-static.

Discussion

  • Gregory Borges

    Gregory Borges - 2012-02-22
     
  • Jashua Cloutier

    Jashua Cloutier - 2012-02-25
    • status: open --> closed-fixed
     
  • Jashua Cloutier

    Jashua Cloutier - 2012-02-25

    Fixed in commit 52:c0a2c2aaeee4

     

Log in to post a comment.