[cfe-commits] r80988 - in /cfe/trunk: lib/Parse/ParseDeclCXX.cpp test/SemaCXX/libstdcxx_is_pod_hack.cpp

Fariborz Jahanian fjahanian at apple.com
Fri Sep 4 09:00:29 PDT 2009


On Sep 4, 2009, at 8:38 AM, Douglas Gregor wrote:

>
> 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?

No. I just made it up :).

- Fariborz

> 4.2 without any extra compiler flags.
>
> 	- Doug




More information about the cfe-commits mailing list