OK, it seems AspectC++ doesn't accept the expression "using namespace My;" inside another namespace.<br>In the following files you will see a namespace "My" and a namespace "Yours" in the same file.<br>
In the second namespace, I declare class "D" that is a child of class "B", from de first namespace.<br>If I put "using namespace My;" inside namespace "Yours", it happens the following error:<br>
<br>leandro.costa@hydrus:~/personal/aspects/bug> ag++ -c C.cc -a C.ah<br>
C.h:17: error: `B' undeclared here<br>
error: Execution failed: "ac++" --config "/tmp/agxx_pcfgr1FFWf"  -a "C.ah"  -p. -c "C.cc" -o "/tmp/C.cc_agxx_2PQSSy"<br><br>If I put "using namespace My;" outside of namespace "Yours", it works.<br>
<br>---<br><br>leandro.costa@hydrus:~/personal/aspects/bug> more C.h C.cc C.ah<br>::::::::::::::<br>C.h<br>::::::::::::::<br>#ifndef _C_H_<br>#define _C_H_<br><br>namespace My<br>{<br>  class B { };<br>}<br><br>//using namespace My; // second try<br>
<br>namespace Yours<br>{<br>  using namespace My; // first try<br><br>  class C<br>  {<br>    class D : B { };<br>  };<br>}<br><br>#endif<br>::::::::::::::<br>C.cc<br>::::::::::::::<br>#include "C.h"<br>::::::::::::::<br>
C.ah<br>::::::::::::::<br>#ifndef _C_AH_<br>#define _C_AH_<br><br>aspect AspC<br>{<br>};<br><br>#endif<br>leandro.costa@hydrus:~/personal/aspects/bug> ag++ -c C.cc -a C.ah<br>C.h:17: error: `B' undeclared here<br>error: Execution failed: "ac++" --config "/tmp/agxx_pcfgr1FFWf"  -a "C.ah"  -p. -c "C.cc" -o "/tmp/C.cc_agxx_2PQSSy"<br>
leandro.costa@hydrus:~/personal/aspects/bug><br><br clear="all"><br>-- <br>_____________________________________________<br><br>                       Leandro Souza Costa<br><br>"A vitória se encastela em jardins encantadores,<br>
  mas para se chegar a ela não há caminho de flores"<br>_____________________________________________<br>