#1248 Language::constructorDeclaration bad call to Swig_name_decl

closed-fixed
5
2012-05-28
2012-05-27
No

Language::constructorDeclaration calls Swig_name_decl with a bad parameter in line 2626:

Swig_warning(WARN_LANG_RETURN_TYPE, input_file, line_number, "Function %s must have a return type. Ignored.\n", Swig_name_decl(name));
(name is a String *) !

However, Swig_name_decl expects a Node*

The call should be
Swig_warning(WARN_LANG_RETURN_TYPE, input_file, line_number, "Function %s must have a return type. Ignored.\n", Swig_name_decl(n));

Discussion

  • Klaus Kämpf

    Klaus Kämpf - 2012-05-27

    Same bug again at line 2763 :

    Swig_warning(WARN_LANG_ILLEGAL_DESTRUCTOR, input_file, line_number, "Illegal destructor name %s. Ignored.\n", Swig_name_decl(name));

     
  • William Fulton

    William Fulton - 2012-05-28

    Fixed in trunk rev 13128. Also see #3530055 and #3530118.

     
  • William Fulton

    William Fulton - 2012-05-28
    • assigned_to: nobody --> wsfulton
    • status: open --> closed-fixed
     
  • William Fulton

    William Fulton - 2012-05-28

    Fixed in trunk rev 13128. Also see #3530055 and #3530118. Thanks for patch, this is what was committed.

     

Log in to post a comment.

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

Sign up for the SourceForge newsletter:





No, thanks