New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parallel: Undeclared event used if child of <parallel> contains a final state #69

Closed
sstiller opened this Issue Sep 13, 2018 · 1 comment

Comments

Projects
None yet
2 participants
@sstiller
Contributor

sstiller commented Sep 13, 2018

Compiler error:

parallel.h: In member function ‘void sc_parallel::state_P1::parallel_enter_final(sc_parallel::data_model&)’:
parallel.h:268:98: error: ‘event_done_state_P1’ is not a member of ‘sc_parallel::state’
   void parallel_enter_final(data_model &m) { if (++m.finals.P1 == 2) m.event_queue.emplace_back(&sc_parallel::state::event_done_state_P1), parent_t::parallel_enter_final(m); }

Example scxml:

<?xml version="1.0" encoding="UTF-8"?>
<scxml xmlns="http://www.w3.org/2005/07/scxml" version="1.0" binding="early" name="parallel" initial="P1">
    <parallel id="P1">
        <state id="P1S1">
            <onentry/>
            <onexit/>
            <state id="P1S11">
                <onentry/>
                <transition type="external" event="ev" target="P1S11"/>
            </state>
        </state>
        <state id="P1S2">
            <onentry/>
            <state id="P1S21">
                <onentry/>
                <onexit/>
                <transition type="external" event="ev" target="Final"/>
            </state>
            <onexit/>
            <final id="Final">
            </final>
        </state>
        <onentry/>
        <transition type="external" event="ev2" target="S1">
        </transition>
        <onexit/>
    </parallel>
    <state id="S1">
        <onentry/>
    </state>
</scxml>
@jp-embedded

This comment has been minimized.

Show comment
Hide comment
@jp-embedded

jp-embedded Sep 14, 2018

Owner

Thanks for the observation. I will look into it

Owner

jp-embedded commented Sep 14, 2018

Thanks for the observation. I will look into it

@jp-embedded jp-embedded self-assigned this Sep 14, 2018

jp-embedded added a commit that referenced this issue Sep 28, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment