gnatbind error: elaboration circularity detected

Thomas De Contes <[email protected]>
Newsgroups gmane.comp.lang.ada.france
Message-ID <[email protected]>
bonjour :-)



Voilà la structure (grossière) de certains de mes paquetages :


private with anneaux;
package naturels is
	...
private
	type chiffre is ...
	package nb is new anneaux(chiffre);
end naturels;

generic
	type element is private;
package anneaux is
	...

with naturels;
package body anneaux is
	...



Et quand je compile, je n'ai aucun pb au moment de l'exécution de  
gcc, mais j'ai une erreur avec gnatbind :

gnatbind -I- -x /Users/thomas/Documents/info/prgms/zalio/igsw-c-e- 
principal.ali
error: elaboration circularity detected
info:    "naturels (spec)" must be elaborated before "naturels (spec)"
info:       reason: with clause


Est ce que c'est normal, ou c'est une erreur de mon compilateur ?

Avez vous besoin que je vous donne un bout de code à tester chez vous ?


-- 
j'agis contre l'assistanat, je travaille dans une SCOP !


_______________________________________________
Site WWW de l'association Ada-France: http://www.ada-france.org/
[email protected]
http://www.ada-france.org/mailman/listinfo/ada-france
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.