a module cannot explicitly reference its own namespace
|
|
Bugzilla Link |
946 |
Created on |
Apr 17, 2012 12:52 |
Resolution |
FIXED |
Resolved on |
Apr 17, 2012 17:54 |
Version |
svn |
OS |
Linux |
Architecture |
PC |
Attachments |
SAC4SNetFibreIO.sac, bug-946.patch
|
Extended Description
Created an attachment (id=877)
source code triggering the error, from s-net
When parsing e.g. "X::id" an external module X is loaded to lookup the symbol id and check its type. This fails when "X" is in fact the module being compiled; as there is no external library for X yet, the compiler stops with an error message:
$ sac2c SAC4SNetFibreIO.sac
** 1: Loading SAC program ...
**** Locating source code ...
Reading from file "./SAC4SNetFibreIO.sac" ...
**** Running C preprocessor ...
**** Parsing input file ...
ABORT: Cannot find library `libSAC4SNetFibreIOTree.so' for module
ABORT: `SAC4SNetFibreIO'
In the attached example this is triggered for example on line 56:
SAC4SNetFibreIO::FibrePrint(stream, dim(arr), shape(arr), arr);