diff options
author | Piotr Trojanek <trojanek@adacore.com> | 2025-01-03 16:02:01 +0100 |
---|---|---|
committer | Marc Poulhiès <dkm@gcc.gnu.org> | 2025-01-13 11:52:57 +0100 |
commit | 518fd9e9b18913997b9ed8120d2a85c7bd3528f9 (patch) | |
tree | db31b1660cc5747ec63bc19ac20e48a427c23247 /gcc/expr.cc | |
parent | d2e3635aa1820346050b85009df82a60cdd8206f (diff) | |
download | gcc-518fd9e9b18913997b9ed8120d2a85c7bd3528f9.zip gcc-518fd9e9b18913997b9ed8120d2a85c7bd3528f9.tar.gz gcc-518fd9e9b18913997b9ed8120d2a85c7bd3528f9.tar.bz2 |
ada: Warn about redundant parentheses in upper range bounds
Fix a glitch in condition that effectively caused detection of redundant
parentheses in upper range bounds to be dead code.
gcc/ada/ChangeLog:
* par-ch3.adb (P_Discrete_Range): Replace N_Subexpr, which was catching
all subexpressions, with kinds that catch nodes that require
parentheses to become "simple expressions".
Diffstat (limited to 'gcc/expr.cc')
0 files changed, 0 insertions, 0 deletions