Commit Message

A scope that declares tasks includes the declaration of an activation chain.
The scope can be any body construct. Previous to this patch, an entry body
was not recognized as such a legal scope.
The following must compile quietly:
gcc -c -gnatws par.adb
---
package Par is
protected type Prot is
Entry E;
end Prot;
end;
---
package body Par is
protected body Prot is separate;
end;
---
separate (Par)
protected body Prot is
entry E when True is
task Tsk;
task body Tsk is
begin
null;
end;
begin
null;
end E;
end Prot;
Tested on x86_64-pc-linux-gnu, committed on trunk
2010-09-09 Ed Schonberg <schonberg@adacore.com>
* exp_ch9.adb (Build_Activation_Chain_Entity): The construct enclosing
a task declaration can be an entry body.