Landing: 20705e66770d

Project / Subsystem

gcc / ada

Date

2026-01-20

Author

Gary Dismukes

Commit

20705e66770d1ca777053867f7d055a1885ec12c

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
ada
patch_id
commit_hash
20705e66770d1ca777053867f7d055a1885ec12c
source_type
github
headline
Ada Accepts Formal Function Defaults with -gnatX Core Extensions.
tldr
The Ada compiler now allows default values for formal functions when using core extensions (-gnatX).
author
Gary Dismukes
outcome
committed
performance_win
false
breaking_change
false
series_id
series_parts
[]
tags
  • ada
  • compiler
  • extensions
discussion_id_link
bugzilla_pr
date
2026-01-20T00:00:00.000Z

The Ada compiler now correctly allows formal functions to be defaulted by an expression when core extensions are enabled using the -gnatX flag. Previously, the compiler incorrectly required all extensions to be enabled, which was stricter than intended. The fix modifies par-ch12.adb to pass True for the Is_Core_Extension parameter when calling Error_Msg_GNAT_Extension.