[cfe-commits] r80988 - in /cfe/trunk: lib/Parse/ParseDeclCXX.cpp test/SemaCXX/libstdcxx_is_pod_hack.cpp
Douglas Gregor
dgregor at apple.com
Fri Sep 4 08:38:48 PDT 2009
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
More information about the cfe-commits
mailing list