exp_ch3.adb (Build_Array_Init_Proc): Only set Init_Proc to a dummy init proc entity...
commitc5ecf679d5d226fdf3c8b0dd5be89c5790247304
authorGary Dismukes <dismukes@adacore.com>
Mon, 26 May 2008 15:15:14 +0000 (26 17:15 +0200)
committerArnaud Charlet <charlet@gcc.gnu.org>
Mon, 26 May 2008 15:15:14 +0000 (26 17:15 +0200)
tree46c60dccfdc124935bda6f8c97975730af00f90d
parentc986420eb0a0d4a31192dc483dee3ced6edf513b
exp_ch3.adb (Build_Array_Init_Proc): Only set Init_Proc to a dummy init proc entity when...

2008-05-26  Gary Dismukes  <dismukes@adacore.com>

* exp_ch3.adb (Build_Array_Init_Proc): Only set Init_Proc to a dummy
init proc entity when there is actual default initialization associated
with the component type, to avoid spurious errors on objects of scalar
array types that are marked Is_Public when No_Default_Initialization
applies.

From-SVN: r135938
gcc/ada/exp_ch3.adb