diff options
author | Ghjuvan Lacambre <lacambre@adacore.com> | 2023-05-23 17:50:24 +0200 |
---|---|---|
committer | Marc Poulhiès <poulhies@adacore.com> | 2023-06-20 09:30:48 +0200 |
commit | 2071134b54aa4f9af01d7d6212dacf7747168448 (patch) | |
tree | ec1f8811490feafc2d6cfde27a42876bbfd39e9a /libcpp/directives.cc | |
parent | b1c3d01619e06e7ef49097925b81307f422ec78a (diff) | |
download | gcc-2071134b54aa4f9af01d7d6212dacf7747168448.zip gcc-2071134b54aa4f9af01d7d6212dacf7747168448.tar.gz gcc-2071134b54aa4f9af01d7d6212dacf7747168448.tar.bz2 |
ada: Pass Error_Node to calls to Error_Msg in lib-load.adb
When not passing Error_Node, Error_Msg will treat Current_Node as the
node attached to the message. When this happens in lib-load.adb due to a
file that cannot be loaded, Current_Node might reference a node that
doesn't actually exist. This is a problem when using -gnatdJ and
-fdiagnostics-format, as in this case GNAT will attempt to retrieve
information from the node attached to the message and thus crash when
said node is invalid.
gcc/ada/
* lib-load.adb (Load_Unit): Pass Error_Node to calls to Error_Msg.
Diffstat (limited to 'libcpp/directives.cc')
0 files changed, 0 insertions, 0 deletions