Message ID | 20141107134857.GA7717@adacore.com |
---|---|
State | New |
Headers | show |
Index: sem_ch6.adb =================================================================== --- sem_ch6.adb (revision 217215) +++ sem_ch6.adb (working copy) @@ -1453,6 +1453,11 @@ -- there are various error checks that are applied on this body -- when it is analyzed (e.g. correct aspect placement). + if Has_Completion (Prev) then + Error_Msg_Sloc := Sloc (Prev); + Error_Msg_NE ("duplicate body for & declared#", N, Prev); + end if; + Is_Completion := True; Rewrite (N, Null_Body); Analyze (N);