[savant-users] Bug while parsing a user defined type

Fabien Rousseau rousseau at prosilog.com
Wed Nov 3 08:06:11 EST 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi

I'm using savant 2.0-pre031216.

I'm trying to parse this file :
library ieee;
use ieee.std_logic_1164.all;
use ieee.std_logic_arith.all;

package types is
	type first_type is range 0 to 255;
	type second_type is range -255 to 255;
end types;
package body types is
end types;

I obtain this message before savant exits:
Processing file ./types.vhd
vhdl2sc: iir/IIRScram/IIRScram_NegationOperator.cc:36: virtual void
IIRScram_NegationOperator::_publish_vhdl_operator(std::ostream&):
Assertion `get_operand()->_is_resolved() == true || parse_error == true'
failed.
Aborted

In fact, sounds like this is the definition of the "second_type" type
that may cause this problem.
Therefore, I have tried the following:
 - to change the definition of second_type to : " is range 0 to 255;"
then it works properly. => If the left value is positive, the parse is
OK, if it is negative, then parsing is aborted with the above error.
 - to comment out the definition of the "first_type" (and the left value
was negative) and the parsing was OK.

Hope somebody can help me,
Best Regards,

Fabien.


- --
Fabien Rousseau
Software Engineer

PROSILOG
8, Rue Traversiere
95000 Cergy Prefecture
France

Tel: +33 (0)1 34 25 54 54
Fax: +33 (0)1 34 25 54 55
E-Mail: rousseau at prosilog.com
http://www.prosilog.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFBiNfDyY+Fxxji1VoRAri0AJwKl8FQVQzaBSYn8XQwBW1/4CcdZgCfRj72
3f0fKk0OoNyXMppHm01VGdo=
=l7JR
-----END PGP SIGNATURE-----
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: types.vhd
Url: http://cliftonlabs.com/pipermail/savant-users/attachments/20041103/e785f82c/attachment.ksh 


More information about the savant-users mailing list