Landing: d4aa557fc81f

Project / Subsystem

gcc / ada

Date

2026-01-15

Author

Eric Botcazou

Commit

d4aa557fc81f266a3764a8b34f701a2064ec7b47

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
ada
patch_id
commit_hash
d4aa557fc81f266a3764a8b34f701a2064ec7b47
source_type
github
headline
Ada: Improve error message for premature freezing of deferred constant
tldr
Enhances the error message for premature freezing of deferred constants by including the constant's name.
author
Eric Botcazou
outcome
committed
performance_win
false
breaking_change
false
series_id
series_parts
[]
tags
  • ada
  • compiler
  • error message
  • deferred constant
  • freezing
discussion_id_link
bugzilla_pr
date
2026-01-15T00:00:00.000Z

This commit improves the error message issued when a deferred constant is prematurely frozen by adding the name of the constant to the message. While a minor change for simple cases, this enhancement will be more helpful in diagnosing the same error in more complex scenarios, providing more context to the user.