Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#50 Class template specialization plus inheritance mis-parsed

closed-fixed
nobody
None
5
2012-11-08
2012-10-16
Gregory Borges
No

Class template specializations that inherit cause parsing errors. Both examples below yield a class named ">".

class BaseClass31 { };
template <typename T> class Sample31 { };
template <> class Sample31<int>: public BaseClass31 { };

class BaseClass32 { };
template <typename T> class Sample32 { };
template <typename T> class Sample31<T*>: public BaseClass32 { };

Discussion

  • Gregory Borges
    Gregory Borges
    2012-10-16

    First example

     
    Attachments
  • Gregory Borges
    Gregory Borges
    2012-10-16

    Second example

     
    Attachments
  • Gregory Borges
    Gregory Borges
    2012-10-16

    Run on release 2.2 and changeset 99.

     
  • Fixed in commit 99:3b88516ba3a4

     
    • summary: Class template specialization plus inheritance --> Class template specialization plus inheritance mis-parsed
    • status: open --> closed-fixed