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

Douglas Gregor dgregor at apple.com
Mon Sep 14 15:32:34 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;

Are you trying to compile Clang against an older version of LLVM?  
PointerUnion4 should be defined in llvm/ADT/PointerUnion.h.

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


More information about the cfe-dev mailing list