Mercurial > hg > CbC > CbC_gcc
comparison gcc/ada/sem_ch2.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 E M _ C H 2 -- | 5 -- S E M _ C H 2 -- |
6 -- -- | 6 -- -- |
7 -- B o d y -- | 7 -- B o d y -- |
8 -- -- | 8 -- -- |
9 -- Copyright (C) 1992-2012, Free Software Foundation, Inc. -- | 9 -- Copyright (C) 1992-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- -- |
66 begin | 66 begin |
67 -- Ignore call if prior errors, and identifier has no name, since | 67 -- Ignore call if prior errors, and identifier has no name, since |
68 -- this is the result of some kind of previous error generating a | 68 -- this is the result of some kind of previous error generating a |
69 -- junk identifier. | 69 -- junk identifier. |
70 | 70 |
71 if Chars (N) in Error_Name_Or_No_Name | 71 if not Is_Valid_Name (Chars (N)) and then Total_Errors_Detected /= 0 then |
72 and then Total_Errors_Detected /= 0 | |
73 then | |
74 return; | 72 return; |
75 else | 73 else |
76 Find_Direct_Name (N); | 74 Find_Direct_Name (N); |
77 end if; | 75 end if; |
78 | 76 |