#612 Forward declarations of template not correctly parsed

closed-fixed
parsing (147)
5
2007-01-25
2005-10-26
No

The parser cannot handle forward declarations of
template classes, for example:

template<typename, typename> class PatchList;

No syntax error in the input file is reported, but the
compilation of the generated code fails due to errors
in the code that was generated from files that came
after the incorrectly parsed one. If the forward
declaration is made invisible for the swig parser, all
is well.

Discussion

  • Marcelo Matus

    Marcelo Matus - 2005-10-27

    Logged In: YES
    user_id=246059

    yes, this is an old problem with the parser and it will require
    some time to get fixed.

    in the meantime, you can use the equivalent workaroud

    template<typename T1, typename T2> class PatchList;

    Marcelo

     
  • William Fulton

    William Fulton - 2007-01-25

    Logged In: YES
    user_id=242951
    Originator: NO

    101645 is a duplicate of this bug

     
  • William Fulton

    William Fulton - 2007-01-25

    Logged In: YES
    user_id=242951
    Originator: NO

    Correction - 1538522 is a duplicate of this bug

     
  • William Fulton

    William Fulton - 2007-01-25

    Logged In: YES
    user_id=242951
    Originator: NO

    Fixed for swig-1.3.32

     
  • William Fulton

    William Fulton - 2007-01-25
    • assigned_to: marcelomatus --> wsfulton
    • status: open --> closed-fixed
     

Log in to post a comment.