aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/par-ch5.adb
diff options
context:
space:
mode:
authorJustin Squirek <squirek@adacore.com>2018-01-11 08:54:34 +0000
committerPierre-Marie de Rodat <pmderodat@gcc.gnu.org>2018-01-11 08:54:34 +0000
commitcb4881181631189b0921b8aaec239016b7c16b46 (patch)
treee43e18317e531a410047d427b06ecebe8f62b001 /gcc/ada/par-ch5.adb
parented27b86ba18a1ffed8ae002412250f0765ab3e72 (diff)
downloadgcc-cb4881181631189b0921b8aaec239016b7c16b46.zip
gcc-cb4881181631189b0921b8aaec239016b7c16b46.tar.gz
gcc-cb4881181631189b0921b8aaec239016b7c16b46.tar.bz2
[Ada] No error on missing enclosing parentheses in Expression Function
This patch fixes an issue whereby an expression within an expression function declaration or completion without proper parenthesization is incorrectly accepted by the compiler. 2018-01-11 Justin Squirek <squirek@adacore.com> gcc/ada/ * par-ch6.adb (Scan_Body_Or_Expression_Function): Add additional check to make sure a given expression function is properly parenthesized. gcc/testsuite/ * gnat.dg/expr_func4.adb: New testcase. From-SVN: r256517
Diffstat (limited to 'gcc/ada/par-ch5.adb')
0 files changed, 0 insertions, 0 deletions