Menu

#211 QM 4.1.x C++ code generated for a submachine does not compile

QM
closed
None
1
2018-06-19
2018-05-07
No

QM 4.1.x C++ code generated for a submachine does not compile for the following specific conditions:

  • the submachine has no entry action
  • the build configuration is Spy

The code fails to compile with the following error messages:

submtst.cpp:126:12: error: no matching function for call to 'SUBMTST::SubmTst::qm_entry_(c
onst SUBMTST::SubmTst::SM_sub1*)'
../../../qpcpp/include/qep.h:427:12: note: candidate is: QP::QState QP::QHsm::qm_entry_(co
nst QP::QMState*)
submtst.cpp:127:1: warning: control reaches end of non-void function

The problem does not exist in the Debug or Relese configurations or when the submachine has an entry action.

--MMS

Discussion

  • Quantum Leaps

    Quantum Leaps - 2018-05-07
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -2,6 +2,16 @@
    
     - the submachine has no entry action
     - the build configuration is Spy
    
    +The code fails to compile with the following error messages:
    +
    +~~~
    +submtst.cpp:126:12: error: no matching function for call to 'SUBMTST::SubmTst::qm_entry_(c
    +onst SUBMTST::SubmTst::SM_sub1*)'
    +../../../qpcpp/include/qep.h:427:12: note: candidate is: QP::QState QP::QHsm::qm_entry_(co
    +nst QP::QMState*)
    +submtst.cpp:127:1: warning: control reaches end of non-void function
    +~~~
    +
     The problem does not exist in the Debug or Relese configurations or when the submachine has an entry action.
    
     --MMS
    
     
  • Quantum Leaps

    Quantum Leaps - 2018-06-19
    • status: open --> closed
     
  • Quantum Leaps

    Quantum Leaps - 2018-06-19

    Fixed in QM 4.2.0.
    --MMS

     

Anonymous
Anonymous

Add attachments
Cancel