On Sep 4, 2009, at 8:19 AM, Fariborz Jahanian wrote:

> This could be related:
>
> union __is_pod {
>   int i;
> };
>
> $CLANG s.cpp
> s.cpp:1:1: error: declaration of anonymous union must be a definition
> union __is_pod {
> ^
> s.cpp:1:1: error: declaration does not declare anything
> union __is_pod {
>
> Renaming __is_pod fixes the problem.

Does this come from real, important code? The only reason I was  
willing to add the "struct __is_pod" hack was because we need to be  
able to compile libstdc++ 4.2 without any extra compiler flags.

        - Doug
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to