public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-5085] [Ada] Better error message on missing parentheses
@ 2021-11-10 8:58 Pierre-Marie de Rodat
0 siblings, 0 replies; only message in thread
From: Pierre-Marie de Rodat @ 2021-11-10 8:58 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:29900c061a6ebbd773cbdfdd86a28df2680dfe8a
commit r12-5085-g29900c061a6ebbd773cbdfdd86a28df2680dfe8a
Author: Yannick Moy <moy@adacore.com>
Date: Tue Nov 2 15:05:55 2021 +0100
[Ada] Better error message on missing parentheses
gcc/ada/
* par-ch4.adb (P_Primary): Adapt test for getting error message
on missing parentheses.
Diff:
---
gcc/ada/par-ch4.adb | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/gcc/ada/par-ch4.adb b/gcc/ada/par-ch4.adb
index b6cc1a0729d..545d83b480b 100644
--- a/gcc/ada/par-ch4.adb
+++ b/gcc/ada/par-ch4.adb
@@ -2892,8 +2892,10 @@ package body Ch4 is
if Token_Is_At_Start_Of_Line
and then not
(Ada_Version >= Ada_2012
- and then Style_Check_Indentation /= 0
- and then Start_Column rem Style_Check_Indentation /= 0)
+ and then
+ (Style_Check_Indentation = 0
+ or else
+ Start_Column rem Style_Check_Indentation /= 0))
then
Error_Msg_AP ("missing operand");
return Error;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-11-10 8:58 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-10 8:58 [gcc r12-5085] [Ada] Better error message on missing parentheses Pierre-Marie de Rodat
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).