#1081 General parsing bug with non numeric expressions

None
closed-duplicate
parsing (147)
5
2017-01-12
2010-03-19
Anonymous
No

The example submitted to the swig-user list:

void useSomeFunc( int i=GetTestClass().someFunc() );

Response from William:

This seems to be a general parsing bug. Non numeric expressions containing . or -> are not parsable. Please log as a bug. Workaround is to simplify the expression, eg:

int GetTestClassSomeFunc() {
return GetTestClass().someFunc();
}
void useSomeFunc( int i=GetTestClassSomeFunc() );

or persuade someone or yourself to fix the bug. The fix to this is going to be somewhere around exprcompound in parser.y. Please add this info to the bug report.

William

Discussion

  • Olly Betts

    Olly Betts - 2017-01-12

    Since rereported as: https://github.com/swig/swig/issues/660

    We're not actively using the SF tracker now, so closing this as a duplicate.

     
  • Olly Betts

    Olly Betts - 2017-01-12
    • status: open --> closed-duplicate
    • Group: -->
     

Log in to post a comment.

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

Sign up for the SourceForge newsletter:





No, thanks