I was going to report the same BUG when I found this thread. As a good practice I started using this compiler directives at the top of the files to make sure I don't upload the wrong code to each core (by this bug or my own error).:
#ifndef CORE_CM4
#error Expected to run on core M4
#endif
#ifndef CORE_CM7
#error Expected to run on core M7
#endif