#50 Class template specialization plus inheritance mis-parsed

closed-fixed
nobody
None
5
2012-11-08
2012-10-16
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

     
  • Gregory Borges

    Gregory Borges - 2012-10-16

    Second example

     
  • Gregory Borges

    Gregory Borges - 2012-10-16

    Run on release 2.2 and changeset 99.

     
  • Jashua Cloutier

    Jashua Cloutier - 2012-11-08

    Fixed in commit 99:3b88516ba3a4

     
  • Jashua Cloutier

    Jashua Cloutier - 2012-11-08
    • summary: Class template specialization plus inheritance --> Class template specialization plus inheritance mis-parsed
    • status: open --> closed-fixed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks