[cfe-dev] err:ISO C++ forbids declaration of 'PointerUnion4' with no type

Chris Lattner clattner at apple.com
Mon Sep 14 16:48:56 PDT 2009


On Sep 14, 2009, at 3:03 PM, 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.

Are your llvm and clang trees the same SVN revision number?

-Chris
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20090914/260e31f3/attachment.html>


More information about the cfe-dev mailing list