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] |
Tested on i686-linux, committed on trunk. After a tagged object is built with Generic_Dispatching_Constructor the compiler generates a run-time check to ensure that the tag of the object denotes a type withing the target class. If the target class is an abstract interface type the generated run-time check generated by the compiler was wrong and the program raised always the exception Tag_Error. After this patch the execution of gnat.dg/generic_dispatch.adb raises no exception. 2006-10-31 Javier Miranda <miranda@adacore.com> * exp_intr.adb (Expand_Dispatching_Constructor_Call): Add missing run-time membership test to ensure that the constructed object implements the target abstract interface.
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] |