diff options
author | Ed Schonberg <schonberg@adacore.com> | 2019-07-22 13:57:51 +0000 |
---|---|---|
committer | Pierre-Marie de Rodat <pmderodat@gcc.gnu.org> | 2019-07-22 13:57:51 +0000 |
commit | 8c029ee8cf5d14e8c0dc0a74d9a5278c3aee49e9 (patch) | |
tree | be97ea27ba1cc2459f91ff6d462cf35ca3ce0519 /libiberty | |
parent | 22862ba6d688c95d9f9577746d212183a11c44da (diff) | |
download | gcc-8c029ee8cf5d14e8c0dc0a74d9a5278c3aee49e9.zip gcc-8c029ee8cf5d14e8c0dc0a74d9a5278c3aee49e9.tar.gz gcc-8c029ee8cf5d14e8c0dc0a74d9a5278c3aee49e9.tar.bz2 |
[Ada] Misleading warning on variable not assigned
This patch removes a warning on a referenced entity with no explicit
prior assignment, if the type of the entity has
Preelaborable_Initialixation, such as Exception_Occurrence.
2019-07-22 Ed Schonberg <schonberg@adacore.com>
gcc/ada/
* sem_warn.adb (Check_References): Do not emit s warning on a
referenced entity with no explicit assignment if the type of the
entity has Preelaborable_Initialixation, such as
Exception_Occurrence.
gcc/testsuite/
* gnat.dg/warn25.adb: New testcase.
From-SVN: r273686
Diffstat (limited to 'libiberty')
0 files changed, 0 insertions, 0 deletions