diff options
author | Steve Baird <baird@adacore.com> | 2023-01-30 17:05:13 -0800 |
---|---|---|
committer | Marc Poulhiès <poulhies@adacore.com> | 2023-05-22 10:44:08 +0200 |
commit | 165b05717cfe9ed17a87b5430e5f9dd19aa8eb1a (patch) | |
tree | 6b9e4f73756daaa0f544d5693863ed3b6730b062 /gcc/ada/debug.adb | |
parent | e1f5cf0b14c460f04e878e8c52c90132f19c5e3f (diff) | |
download | gcc-165b05717cfe9ed17a87b5430e5f9dd19aa8eb1a.zip gcc-165b05717cfe9ed17a87b5430e5f9dd19aa8eb1a.tar.gz gcc-165b05717cfe9ed17a87b5430e5f9dd19aa8eb1a.tar.bz2 |
ada: Reject illegal declarations in expression functions
gcc/ada/
* sem_ch4.adb (Analyze_Expression_With_Actions.Check_Action_Ok):
If Comes_From_Source (A) is False, then look at Original_Node (A)
instead of A. In particular, if an (illegal) expression function
is transformed into a "vanilla" function, we don't want to allow
it just because Comes_From_Source is now False.
Diffstat (limited to 'gcc/ada/debug.adb')
0 files changed, 0 insertions, 0 deletions