r266119 - in /trunk/gcc: ada/ChangeLog ada/sem_...
pmderodat@gcc.gnu.org
pmderodat@gcc.gnu.org
Wed Nov 14 11:42:00 GMT 2018
Author: pmderodat
Date: Wed Nov 14 11:41:09 2018
New Revision: 266119
URL: https://gcc.gnu.org/viewcvs?rev=266119&root=gcc&view=rev
Log:
[Ada] Visibility error on used enumerated type
This patch fixes an issue whereby the freezing of a nested package
containing an enumerated type declaration would cause visibility errors
on literals of such type when a use_all_type_clause for it appears
within the same declarative region.
2018-11-14 Justin Squirek <squirek@adacore.com>
gcc/ada/
* sem_ch7.adb (Uninstall_Declarations): Add conditional to avoid
uninstalling potential visibility during freezing on enumeration
literals.
gcc/testsuite/
* gnat.dg/enum5.adb: New testcase.
Added:
trunk/gcc/testsuite/gnat.dg/enum5.adb
Modified:
trunk/gcc/ada/ChangeLog
trunk/gcc/ada/sem_ch7.adb
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-cvs
mailing list