comparison gcc/ada/libgnat/s-elaall.adb @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children 1830386684a0
comparison
equal deleted inserted replaced
111:04ced10e8804 131:84e7813d76e9
4 -- -- 4 -- --
5 -- S Y S T E M . E L A B O R A T I O N _ A L L O C A T O R S -- 5 -- S Y S T E M . E L A B O R A T I O N _ A L L O C A T O R S --
6 -- -- 6 -- --
7 -- B o d y -- 7 -- B o d y --
8 -- -- 8 -- --
9 -- Copyright (C) 2014-2017, Free Software Foundation, Inc. -- 9 -- Copyright (C) 2014-2018, Free Software Foundation, Inc. --
10 -- -- 10 -- --
11 -- GNAT is free software; you can redistribute it and/or modify it under -- 11 -- GNAT is free software; you can redistribute it and/or modify it under --
12 -- terms of the GNU General Public License as published by the Free Soft- -- 12 -- terms of the GNU General Public License as published by the Free Soft- --
13 -- ware Foundation; either version 3, or (at your option) any later ver- -- 13 -- ware Foundation; either version 3, or (at your option) any later ver- --
14 -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- 14 -- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
43 ------------------------------ 43 ------------------------------
44 44
45 procedure Check_Standard_Allocator is 45 procedure Check_Standard_Allocator is
46 begin 46 begin
47 if not Elaboration_In_Progress then 47 if not Elaboration_In_Progress then
48 raise Program_Error with 48 raise Storage_Error with
49 "standard allocator after elaboration is complete is not allowed " 49 "standard allocator after elaboration is complete is not allowed "
50 & "(No_Standard_Allocators_After_Elaboration restriction active)"; 50 & "(No_Standard_Allocators_After_Elaboration restriction active)";
51 end if; 51 end if;
52 end Check_Standard_Allocator; 52 end Check_Standard_Allocator;
53 53