LLVM Bugzilla is read-only and represents the historical archive of all LLVM issues filled before November 26, 2021. Use github to submit LLVM bugs

Bug 2010 - The Ada f-e generates bogus records for descendants of tagged types with a variant part (ACATS c393010)
Summary: The Ada f-e generates bogus records for descendants of tagged types with a va...
Status: NEW
Alias: None
Product: tools
Classification: Unclassified
Component: gnat (show other bugs)
Version: trunk
Hardware: Other Linux
: P enhancement
Assignee: Unassigned LLVM Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-10 07:33 PST by Duncan Sands
Modified: 2010-02-22 12:55 PST (History)
1 user (show)

See Also:
Fixed By Commit(s):


Attachments
testcase .ads (540 bytes, text/plain)
2008-02-10 07:33 PST, Duncan Sands
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Duncan Sands 2008-02-10 07:33:20 PST
Created attachment 1393 [details]
testcase .ads

The problem occurs when a child type, due to a discriminant
constraint, does not have all the fields of the parent.  The
f-e nonetheless generates the non-present fields in the child
record type even if they are off the end of the record (this
causes llvm-gcc to abort).  See attached testcase.