1 2 3 4 5 6
fn bar() {} const fn foo() { bar(); // { dg-error "only functions marked as .const. are allowed to be called from constant contexts" } }