Reimplement the handling of the "current object" in designator
initializers, so that we are within the appropriate subobject after we've processed a multi-designator designation. We're matching GCC and EDG's behavior on all examples I've found thus far. *Huge* thanks to Eli Friedman for pointing out my fundamental misunderstanding of "current object" in the C99 spec. llvm-svn: 62812
Showing
- clang/include/clang/AST/Expr.h 5 additions, 0 deletionsclang/include/clang/AST/Expr.h
- clang/lib/Sema/Sema.h 12 additions, 4 deletionsclang/lib/Sema/Sema.h
- clang/lib/Sema/SemaInit.cpp 197 additions, 145 deletionsclang/lib/Sema/SemaInit.cpp
- clang/test/Sema/designated-initializers.c 37 additions, 1 deletionclang/test/Sema/designated-initializers.c
Loading
Please register or sign in to comment