]> git.ipfire.org Git - thirdparty/gcc.git/commit
ada: Improved error message when size of descendant type exceeds Size'Class limit
authorSteve Baird <baird@adacore.com>
Fri, 30 May 2025 18:11:02 +0000 (11:11 -0700)
committerMarc Poulhiès <dkm@gcc.gnu.org>
Fri, 4 Jul 2025 07:41:46 +0000 (09:41 +0200)
commitd27e6037e566924a166ecc7ff84bb6aefa55ee45
tree383a656a4da5ba98702e4169ced458ed85e82a9a
parent0992435c0f264567d31be43cc8f87b20f9967667
ada: Improved error message when size of descendant type exceeds Size'Class limit

Improve the error message that is generated when the size of tagged type
exceeds a Size'Class limit specified for an ancestor type.

gcc/ada/ChangeLog:

* mutably_tagged.adb (Make_CW_Size_Compile_Check): Include the
value of the Size'Class limit in the message generated via a
Compile_Time_Error pragma.
gcc/ada/mutably_tagged.adb