]> granicus.if.org Git - clang/commit
Implement support for anonymous structs and unions in C. Both C and
authorDouglas Gregor <dgregor@apple.com>
Mon, 12 Jan 2009 22:49:06 +0000 (22:49 +0000)
committerDouglas Gregor <dgregor@apple.com>
Mon, 12 Jan 2009 22:49:06 +0000 (22:49 +0000)
commit4920f1ffb62b13b88e579476803c093f97f3e17f
tree057ff38bb1e1460a260952a28c27369b756b82b6
parent1e0ead411bd1eca1b18e08684b79993e40dae1db
Implement support for anonymous structs and unions in C. Both C and
C++ handle anonymous structs/unions in the same way. Addresses several
bugs:

  <rdar://problem/6259534>
  <rdar://problem/6481130>
  <rdar://problem/6483159>

The test case in PR clang/1750 now passes with -fsyntax-only, but
CodeGen for inline assembler still fails.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62112 91177308-0d34-0410-b5e6-96231b3b80d8
Driver/clang.cpp
include/clang/Basic/DiagnosticKinds.def
lib/Parse/DeclSpec.cpp
lib/Parse/ParseDecl.cpp
lib/Sema/SemaDecl.cpp
test/Parser/cxx-class.cpp
test/Sema/anonymous-struct-union.c [new file with mode: 0644]
test/SemaCXX/anonymous-union.cpp
test/SemaObjC/property-9.m