r241564 - Don't rely on the use of non-POD types within unions.

Douglas Gregor dgregor at apple.com
Tue Jul 7 08:55:40 PDT 2015


> On Jul 7, 2015, at 7:10 AM, Ed Maste <emaste at freebsd.org> wrote:
> 
> On 7 July 2015 at 05:45, Yaron Keren <yaron.keren at gmail.com> wrote:
>> Hi Douglas,
>> 
>> One of these Objective C patches breaks Visual C++ compilation, see
>> 
>> 
>> http://lab.llvm.org:8011/builders/clang-x86-win2008-selfhost/builds/1803/steps/build%20stage%201/logs/stdio
> 
> r241564 also introduced large number of warnings in the LLDB build
> (FreeBSD Clang 3.4.1 host compiler):
> 
> [1968/2454] Building CXX object tools/...bCommands.dir/CommandObjectFrame.cpp.o
> In file included from ../tools/lldb/source/Commands/CommandObjectFrame.cpp:25:
> In file included from
> ../tools/lldb/include/lldb/DataFormatters/DataVisualization.h:20:
> In file included from
> ../tools/lldb/include/lldb/DataFormatters/FormatManager.h:23:
> In file included from
> ../tools/lldb/include/lldb/DataFormatters/FormattersContainer.h:19:
> ../tools/lldb/../clang/include/clang/AST/DeclObjC.h:613:5: warning:
> anonymous types declared in an anonymous union are an extension
> [-Wnested-anon-types]
>    struct {
>    ^
> 1 warning generated.


Addressed in r241598.

	- Doug





More information about the cfe-commits mailing list