This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
The compiler does not report an error when a task type does not define an entry or a procedure to cover a primitive inherited from an interface type. After this patch the following test compiles with an error: package Progenitor is type Progenitor_T is synchronized interface; procedure Primitive_Operation (P : Progenitor_T) is abstract; end; with Progenitor; use Progenitor; package Pkg is task type T is new Progenitor_T with end T; procedure Fee; end; Command:i gcc -c pkg.ads pkg.ads:4:03: interface subprogram "Primitive_Operation" must be overridden Tested on x86_64-pc-linux-gnu, committed on trunk 2014-01-24 Javier Miranda <miranda@adacore.com> * sem_ch3.adb (Check_Abstract_Overriding): Code reestructuration required to report the error in case of task types.
Attachment:
difs
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |