Issue 241122.1: Default Lower Bound for Ada 2005 & 2012
| Author: | Jakub Jelinek |
|---|---|
| Champion: | |
| Date submitted: | 2024-11-22 |
| Date revised: | |
| Date closed: | 2024-11-25 |
| Type: | Error |
| Status: | Accepted |
| DWARF version: | 6 |
Similarly to the Fortran cases, https://dwarfstd.org/languages.html
DW_LANG_Ada83 0x0003 1
DW_LANG_Ada95 0x000d 1
DW_LANG_Ada2005 0x002e 0
DW_LANG_Ada2012 0x002f 0
I admit I know nothing about Ada (CCing Tom if he can clarify), but I'd find it unexpected if Ada 83/95 defaulted to lower bound 1 and Ada 2005/2012 all of sudden switched to lower bound 0.
https://dwarfstd.org/languages-v6.html says
ISO Ada DW_LNAME_Ada 0x0001 1 YYYY
and so has lower bound default 1 for all versions.