Hello Tristan,

This explains a lot...

I think you can emit the error at the access type declaration. Currently it's emitted at the usage.

Regards
    Patrick

-----------------------------------
Wissenschaftliche Hilfskraft
Technische Universität Dresden
Fakultät Informatik
Institut für Technische Informatik
Lehrstuhl VLSI-Entwurfssysteme, Diagnostik und Architektur        
01062 Dresden, GERMANY
Tel.:  +49 351 463-38451                                       Fax:  +49 351 463-38324
E-Mail: patrick.lehm...@tu-dresden.de  
WWW:    http://vlsi-eda.inf.tu-dresden.de

-------- Ursprüngliche Nachricht --------
Von: Tristan Gingold
Datum:03.01.2016 14:47 (GMT+01:00)
An: ghdl-discuss@gna.org
Betreff: Re: [Ghdl-discuss] method return type must not be access of file

On 03/01/16 14:02, Lehmann, Patrick wrote:
> Hello,
>
> I'm experimenting with VHDL-2008 features and protected types and got
> this error:
>
> method return type must not be access of file
>
> My code uses 2 protected types, wherin one returns the otherone as a
> pointer (access type) because protected types can not be returned.
>
> type T_TEST is protected
>    procedure init(TestID : NATURAL; TestName : STRING);
>    function getName return STRING;
> end protected;
>
> type T_TEST_PTR is access T_TEST;

In fact, this declaration is not allowed: you cannot declare an
access to a protected type.  I will fix the message.

Tristan.


_______________________________________________
Ghdl-discuss mailing list
Ghdl-discuss@gna.org
https://mail.gna.org/listinfo/ghdl-discuss

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

_______________________________________________
Ghdl-discuss mailing list
Ghdl-discuss@gna.org
https://mail.gna.org/listinfo/ghdl-discuss

Reply via email to