Hi,
I update clang to current trunk(163490) due to that I cannot use
@encode(typeof(var)) in a file.mm; it works fine in .m, why is that?
error: unknown type name 'typeof'; did you mean the keyword 'typedef'?
@encode(typeof(argc));
But __typeof__(argc) works fine and I can live with that.
But after the upgrading, I ran into another problem..
In file included from CodeGenModule.mm:1:
In file included from
/home/id/etoile.svn/Etoile/Languages/LanguageKit/CodeGen/CodeGenModule.h:3:
In file included from
/home/id/etoile.svn/Etoile/Languages/LanguageKit/CodeGen/CGObjCRuntime.h:18:
In file included from /usr/local/include/llvm/ADT/SmallVector.h:19:
In file included from /usr/local/include/llvm/Support/type_traits.h:22:
In file included from
/usr/lib/gcc/i686-linux-gnu/4.6/../../../../include/c++/4.6/utility:70:
In file included from
/usr/lib/gcc/i686-linux-gnu/4.6/../../../../include/c++/4.6/bits/stl_pair.h:60:
/usr/lib/gcc/i686-linux-gnu/4.6/../../../../include/c++/4.6/bits/move.h:46:22:
error: cast of an
Objective-C pointer to 'const volatile char &' is disallowed with ARC
(&const_cast<char&>(reinterpret_cast<const volatile char&>(__r)));
Thanks a lot,
Al.
_______________________________________________
Etoile-discuss mailing list
[email protected]
https://mail.gna.org/listinfo/etoile-discuss