Message ID | 20111121113848.GA18046@adacore.com |
---|---|
State | New |
Headers | show |
Index: sem_prag.adb =================================================================== --- sem_prag.adb (revision 181563) +++ sem_prag.adb (working copy) @@ -3527,8 +3527,9 @@ -- For Stdcall, a subprogram, variable or subprogram type is required if C = Convention_Stdcall - and then not Is_Subprogram (E) - and then not Is_Generic_Subprogram (E) + and then + ((not Is_Subprogram (E) and then not Is_Generic_Subprogram (E)) + or else Is_Dispatching_Operation (E)) and then Ekind (E) /= E_Variable and then not (Is_Access_Type (E)