[cfe-dev] err:ISO C++ forbids declaration of 'PointerUnion4' with no type
Alastair Lynn
arplynn at gmail.com
Mon Sep 14 15:09:08 PDT 2009
Hi-
Just to clarify here- are you trying to compile this code with clang?
Clang doesn't yet have anything like proper support for C++. Try llvm-g
++ instead.
On 14 Sep 2009, at 23:03, Craig Mortensen wrote:
> Hello,
>
> I'm running into a compile errors for PointerUnion4 in TemplateName.h
>
>
> /usr/local/include/clang/AST/TemplateName.h:63:0 ISO C++ forbids
> declaration of 'PointerUnion4' with no type in /usr/local/include/
> clang/AST/TemplateName.h
>
> class TemplateName {
> typedef llvm::PointerUnion4<TemplateDecl *, OverloadedFunctionDecl
> *,
> QualifiedTemplateName *,
> DependentTemplateName *> StorageType;
>
> How to I get the compiler to get passed this? In XCode, I tried
> using both the built clang compiler from the llvm/clang project and
> the one that comes stock with Mac OSX SnowLeopard. Both gave the
> same error.
>
> Thanks for your help,
>
> Craig
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20090914/bc5a5702/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3912 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20090914/bc5a5702/attachment.bin>
More information about the cfe-dev
mailing list