1
- +===========================GNAT BUG DETECTED==============================+
2
- | GNU Ada (ada2goto) Assert_Failure tree_walk.adb:4673 |
3
- | Error detected at check_size.adb:1:11 |
4
- | Please submit a bug report; see https://gcc.gnu.org/bugs/ . |
5
- | Use a subject line meaningful to you and us to track the bug. |
6
- | Include the entire contents of this bug box in the report. |
7
- | Include the exact command that you entered. |
8
- | Also include sources listed below. |
9
- +==========================================================================+
1
+ Standard_Output from gnat2goto check_size:
2
+ ----------At: Process_Declaration----------
3
+ ----------size clause not applied by the front-end----------
4
+ N_Attribute_Definition_Clause "size" (Node_Id=2310) (source,analyzed)
5
+ Sloc = 8372 check_size.adb:7:4
6
+ Chars = "size" (Name_Id=300000899)
7
+ Name = N_Identifier "t_1" (Node_Id=2307)
8
+ Expression = N_Integer_Literal (Node_Id=2311)
9
+ Entity = N_Defining_Identifier "t_1" (Entity_Id=2291)
10
+ ----------At: Make_Default_Initialiser----------
11
+ ----------Unknown Ekind----------
12
+ N_Defining_Identifier "Tvar_size_1S" (Entity_Id=2520)
13
+ Parent = N_Subtype_Declaration (Node_Id=2528)
14
+ Sloc = 8572 check_size.adb:18:4
15
+ Chars = "Tvar_size_1S" (Name_Id=300001465)
16
+ Next_Entity = N_Defining_Identifier "var_size_2" (Entity_Id=2389)
17
+ Scope = N_Defining_Identifier "check_size" (Entity_Id=2245)
18
+ Ekind = E_Signed_Integer_Subtype
19
+ Etype = N_Defining_Identifier "integer" (Entity_Id=1009s)
20
+ Esize = 32 (Uint = 600032800)
21
+ RM_Size = 6 (Uint = 600032774)
22
+ Alignment = 4 (Uint = 600032772)
23
+ Scalar_Range = N_Range (Node_Id=2380)
24
+ Has_Qualified_Name = True
25
+ Is_Constrained = True
26
+ Is_Frozen = True
27
+ Is_Unsigned_Type = True
28
+ Needs_Debug_Info = True
29
+ Size_Known_At_Compile_Time = True
30
+ ----------At: Process_Declaration----------
31
+ ----------size clause not applied by the front-end----------
32
+ N_Attribute_Definition_Clause "size" (Node_Id=2387) (source,analyzed)
33
+ Sloc = 8611 check_size.adb:19:4
34
+ Chars = "size" (Name_Id=300000899)
35
+ Name = N_Identifier "var_size_1" (Node_Id=2384)
36
+ Expression = N_Integer_Literal (Node_Id=2388)
37
+ Entity = N_Defining_Identifier "var_size_1" (Entity_Id=2369)
38
+ ----------At: Make_Default_Initialiser----------
39
+ ----------Unknown Ekind----------
40
+ N_Defining_Identifier "Tvar_size_2S" (Entity_Id=2531)
41
+ Parent = N_Subtype_Declaration (Node_Id=2539)
42
+ Sloc = 8647 check_size.adb:21:4
43
+ Chars = "Tvar_size_2S" (Name_Id=300001466)
44
+ Next_Entity = N_Defining_Identifier "var_u8" (Entity_Id=2413)
45
+ Scope = N_Defining_Identifier "check_size" (Entity_Id=2245)
46
+ Ekind = E_Signed_Integer_Subtype
47
+ Etype = N_Defining_Identifier "integer" (Entity_Id=1009s)
48
+ Esize = 32 (Uint = 600032800)
49
+ RM_Size = 17 (Uint = 600032785)
50
+ Alignment = 4 (Uint = 600032772)
51
+ Scalar_Range = N_Range (Node_Id=2400)
52
+ Has_Qualified_Name = True
53
+ Is_Constrained = True
54
+ Is_Frozen = True
55
+ Is_Unsigned_Type = True
56
+ Needs_Debug_Info = True
57
+ Size_Known_At_Compile_Time = True
58
+ ----------At: Process_Declaration----------
59
+ ----------size clause not applied by the front-end----------
60
+ N_Attribute_Definition_Clause "size" (Node_Id=2426) (source,analyzed)
61
+ Sloc = 8753 check_size.adb:25:4
62
+ Chars = "size" (Name_Id=300000899)
63
+ Name = N_Identifier "var_u8" (Node_Id=2423)
64
+ Expression = N_Integer_Literal (Node_Id=2427)
65
+ Entity = N_Defining_Identifier "var_u8" (Entity_Id=2413)
10
66
11
- Please include these source files with error report
12
- Note that list may not be accurate in some cases,
13
- so please double check that the problem can still
14
- be reproduced with the set of files listed.
15
- Consider also -gnatd.n switch (see debug.adb).
16
-
17
- check_size.adb
18
-
19
- compilation abandoned
67
+ [check_size.assertion.1] line 30 assertion Integer (Var_T_1) + Integer (Var_T_2) = 70: SUCCESS
68
+ [check_size.assertion.2] line 34 assertion Var_Size_1 + Var_Size_2 = 30: SUCCESS
69
+ [check_size.assertion.3] line 37 assertion Var_U8 + 1 = 0: SUCCESS
70
+ VERIFICATION SUCCESSFUL
0 commit comments