compiler: "illegal behavior", not "undefined behavior", in errors

This commit is contained in:
mlugg
2025-03-25 15:01:56 +00:00
committed by Andrew Kelley
parent ca1fc3827e
commit eee752ea5a
36 changed files with 6751 additions and 6803 deletions

View File

@@ -13,7 +13,7 @@ export fn entry2() void {
// error
//
// :4:13: error: pointer computation here causes undefined behavior
// :4:13: error: pointer computation here causes illegal behavior
// :4:13: note: resulting pointer exceeds bounds of containing value which may trigger overflow
// :10:55: error: pointer computation here causes undefined behavior
// :10:55: error: pointer computation here causes illegal behavior
// :10:55: note: resulting pointer exceeds bounds of containing value which may trigger overflow