string::operator+ is considered invalid by AspectC++:<br><br>leandro.costa@hydrus:~/personal/aspects/bug4> more C.h C.cc C.ah<br>::::::::::::::<br>C.h<br>::::::::::::::<br>#ifndef _C_H_<br>#define _C_H_<br><br>class C<br>
{<br> C ();<br>};<br><br>#endif<br>::::::::::::::<br>C.cc<br>::::::::::::::<br>#include "C.h"<br><br>#include <string><br>using std::string;<br><br>C::C ()<br>{<br> string s1 = "";<br> string s2 = "";<br>
string s3 = s1 + s2;<br>}<br>::::::::::::::<br>C.ah<br>::::::::::::::<br>#ifndef _ASPC_AH_<br>#define _ASPC_AH_<br><br>aspect AspC<br>{<br><br>};<br><br>#endif<br>leandro.costa@hydrus:~/personal/aspects/bug4> ac++ -v9 --real-instances --config puma.config -p . -a C.ah -c C.cc -o C.acc<br>
* Running ac++ 1.0pre4 svn<br>* Handling Translation Unit `C.cc'.<br> - Path "C.cc"<br> - Inserting namespace AC<br> - Parsing ...<br> - Setting up join point model 1 ...<br> Concrete aspect AspC<br> - Setting Aspect Access Priviledges ...<br>
- Weaving Introductions ...<br> - Weaving Advice Declarations ...<br> - Weaving Singleton Aspects ...<br> - Commiting<br> - Preparing introductions ...<br> - Parsing again ...<br>C.cc:10: error: invalid operand to binary `+'<br>
C.cc:10: error: undefined type<br> - Aborting<br>leandro.costa@hydrus:~/personal/aspects/bug4><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>