Nicola,

obj-c++.dg/property/property-encoding-1.mm fails to compile with:

/opt/gcc/work/gcc/testsuite/obj-c++.dg/property/property-encoding-1.mm: In 
function 'char* concat(char*, char*, char*)':^M
/opt/gcc/work/gcc/testsuite/obj-c++.dg/property/property-encoding-1.mm:95:40: 
error: invalid conversion from 'void*' to 'char*' [-fpermissive]^M
/opt/gcc/work/gcc/testsuite/obj-c++.dg/property/property-encoding-1.mm: In 
function 'int main(int, char**)':^M
/opt/gcc/work/gcc/testsuite/obj-c++.dg/property/property-encoding-1.mm:112:61: 
warning: deprecated conversion from string constant to 'char*' 
[-Wwrite-strings]^M/opt/gcc/work/gcc/testsuite/obj-c++.dg/property/property-encoding-1.mm:112:61:
 warning: deprecated conversion from string constant to 'char*' 
[-Wwrite-strings]^M/opt/gcc/work/gcc/testsuite/obj-c++.dg/property/property-encoding-1.mm:112:61:
 warning: deprecated conversion from string constant to 'char*' [-Wwrite
-strings]^M
/opt/gcc/work/gcc/testsuite/obj-c++.dg/property/property-encoding-1.mm:117:63: 
warning: deprecated conversion from string constant to 'char*' [-Wwrite
-strings]^M
/opt/gcc/work/gcc/testsuite/obj-c++.dg/property/property-encoding-1.mm:117:63: 
warning: deprecated conversion from string constant to 'char*' [-Wwrite
-strings]^M
/opt/gcc/work/gcc/testsuite/obj-c++.dg/property/property-encoding-1.mm:117:63: 
warning: deprecated conversion from string constant to 'char*' [-Wwrite
-strings]^M
...

You cannot copy the objc code to obj-c++ (I should have said that I tried it).
You need to use the right C++ incantations, but none of the ones I tried worked
(free, +, ...).

Dominique

Reply via email to