summaryrefslogtreecommitdiff
path: root/gcc/ada/sem_util.adb
diff options
context:
space:
mode:
authorcharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2010-06-22 07:08:23 +0000
committercharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2010-06-22 07:08:23 +0000
commit3d2e99adf048bc91fde930295a6c2ac5bccaa46c (patch)
tree688882bcccbcc9c373ed6773350213fd15bfa338 /gcc/ada/sem_util.adb
parent3c71ed7c133c1becd1551dc2dae8e24d3b841116 (diff)
downloadgcc-3d2e99adf048bc91fde930295a6c2ac5bccaa46c.tar.gz
2010-06-22 Gary Dismukes <dismukes@adacore.com>
* sem_ch3.adb (Build_Discriminal): Set default scopes for newly created discriminals to the current scope. * sem_util.adb (Find_Body_Discriminal): Remove setting of discriminal's scope, which could overwrite a different already set value. 2010-06-22 Ed Schonberg <schonberg@adacore.com> * sem_res.adb (Valid_Conversion): If expression is a predefined operator, use sloc of type of interpretation to improve error message when operand is of some derived type. * sem_eval.adb (Is_Mixed_Mode_Operand): New function, use it. 2010-06-22 Emmanuel Briot <briot@adacore.com> * g-expect-vms.adb (Expect_Internal): No longer raises an exception, so that it can set out parameters as well. When a process has died, reset its Input_Fd to Invalid_Fd, so that when using multiple processes we can find out which process has died. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@161135 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada/sem_util.adb')
-rw-r--r--gcc/ada/sem_util.adb1
1 files changed, 0 insertions, 1 deletions
diff --git a/gcc/ada/sem_util.adb b/gcc/ada/sem_util.adb
index 340e8fee07f..04f8341f2ad 100644
--- a/gcc/ada/sem_util.adb
+++ b/gcc/ada/sem_util.adb
@@ -3082,7 +3082,6 @@ package body Sem_Util is
Disc := First_Discriminant (Tsk);
while Present (Disc) loop
if Chars (Disc) = Chars (Spec_Discriminant) then
- Set_Scope (Discriminal (Disc), Tsk);
return Discriminal (Disc);
end if;