Abstract
Climate is changing towards both higher average temperatures and more frequent and severe heat waves. Whereas numerous studies have investigated temperature effects on animal life histories, assessments of their immune function are limited. In the size- and colour-dimorphic black scavenger (or dung) fly Sepsis thoracica (Diptera: Sepsidae), we experimentally studied how developmental temperature and larval density influence phenoloxidase (PO) activity, a key enzyme in insect pigmentation, thermoregulation, and immunity. Flies from five latitudinal European populations were raised at three developmental temperatures (18, 24, 30 °C). PO activity increased with developmental temperature differently in the sexes and the two male morphs (black and orange), altering the sigmoid relationship between melanism, i.e. colouration and fly size. PO activity further positively correlated with larval rearing density, potentially because of higher risks of pathogen infection or greater developmental stress following stronger resource competition. Populations varied somewhat in PO activity, body size and colouration, however with no clear latitudinal pattern. Overall our results indicate that morph- and sex-specific PO activity, and thus likely immune function, in S. thoracica depends on temperature and larval density, modifying the underlying putative trade-off between immunity and body size. The strong dampening of the immune system of all morphs at cool temperatures suggests low-temperature stress in this warm-adapted species common in southern Europe. Our results also support the population density dependent prophylaxis hypothesis, which predicts higher investment in immunity when facing limited resource availability and increased pathogen infection probability.