[cfe-dev] err:ISO C++ forbids declaration of 'PointerUnion4' with no type
Craig Mortensen
mortay at apple.com
Mon Sep 14 15:45:02 PDT 2009
> Are you trying to compile Clang against an older version of LLVM?
> PointerUnion4 should be defined in llvm/ADT/PointerUnion.h.
Yes, that was my problem! I didn't copy over the proper headers to /
usr/local/include (and save-off the shipping ones)
Thanks,
Craig
On Sep 14, 2009, at 3:32 PM, Douglas Gregor wrote:
>
> 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/5dd76d55/attachment.html>
More information about the cfe-dev
mailing list