Wow. If 5 terrorists live in a civilian building with 500 innocent people living in that building as well, does a government have the right to bomb that building by the standards of modern law?
Since the first one was a thought experiment, there really were 5 terrorists. Now think of a government that can virtually bomb any civilian building, where the existence of terrorists theoretically could be "maybe they exist" or "they do not exist at all," and their definition of "terrorist" may not even align with the dictionary or the law. (For example, a doctor who is caring for the wounded, and those wounded people were taking a meal to some place, maybe to a group which could potentially be Hamas members, so the doctor can be well-described as a terrorist, so that bombing a civilian building the doctors could be can be defined as "Selfe-Defence")