#866 %template with single default parameter causes segfault

closed-fixed
parsing (147)
5
2007-12-12
2007-10-25
Mat Sutcliffe
No

A template with a single parameter, with a default value, will cause Swig to segfault when parsing a %template which omits the parameter. For example, the following test case:

template<typename T = int> class Foo;
%template() Foo<>;

Discussion

  • Mat Sutcliffe
    Mat Sutcliffe
    2007-10-25

    Logged In: YES
    user_id=243551
    Originator: YES

    Version is 1.3.31. Doesn't seem to depend on target language (tested for Perl and Python).

     
  • William Fulton
    William Fulton
    2007-12-12

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

    Logged In: YES
    user_id=242951
    Originator: NO

    Fixed for 1.3.34