This is the mail archive of the gcc-cvs@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]

r273199 - in /trunk/gcc: ada/ChangeLog ada/exp_...


Author: pmderodat
Date: Mon Jul  8 08:12:55 2019
New Revision: 273199

URL: https://gcc.gnu.org/viewcvs?rev=273199&root=gcc&view=rev
Log:
[Ada] Crash on Image and Value attributes

This patch fixes an issue whereby the creation of an enumeration within
package where Default_Scalar_Storage_Order is in effect may lead to a
crash when the attributes Image or Value are applied to objects of said
type or the type directly.

2019-07-08  Justin Squirek  <squirek@adacore.com>

gcc/ada/

	* exp_imgv.adb (Build_Enumeration_Image_Tables): Default SSO for
	the building of image tables.
	(Expand_Image_Attribute): Minor cleanup.

gcc/testsuite/

	* gnat.dg/sso16.adb: New testcase.

Added:
    trunk/gcc/testsuite/gnat.dg/sso16.adb
Modified:
    trunk/gcc/ada/ChangeLog
    trunk/gcc/ada/exp_imgv.adb
    trunk/gcc/testsuite/ChangeLog


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]