diff options
author | Piotr Trojanek <trojanek@adacore.com> | 2025-01-07 10:42:35 +0100 |
---|---|---|
committer | Marc Poulhiès <dkm@gcc.gnu.org> | 2025-01-13 11:52:58 +0100 |
commit | ef4448e0a0508db63581c27238d39e634268b5a2 (patch) | |
tree | 5911ebc8530d2f65c6a14b6aa39d785ee1240895 /gcc/expr.cc | |
parent | c6989fbbf2f195e874245409635a856d74bf6945 (diff) | |
download | gcc-ef4448e0a0508db63581c27238d39e634268b5a2.zip gcc-ef4448e0a0508db63581c27238d39e634268b5a2.tar.gz gcc-ef4448e0a0508db63581c27238d39e634268b5a2.tar.bz2 |
ada: Fix spurious warning about redundant parentheses in range bound
Use the same logic for warning about redundant parentheses in lower and upper
bounds of a discrete range. This fixes a spurious warning that, if followed,
would render the code illegal.
gcc/ada/ChangeLog:
* par-ch3.adb (P_Discrete_Range): Detect redundant parentheses in the
lower bound like in the upper bound.
Diffstat (limited to 'gcc/expr.cc')
0 files changed, 0 insertions, 0 deletions