[PATCH] D11850: Delay emitting members of dllexport classes until the class is fully parsed (PR23542)

Hans Wennborg via cfe-commits cfe-commits at lists.llvm.org
Fri Aug 7 15:48:03 PDT 2015


hans created this revision.
hans added a reviewer: rsmith.
hans added subscribers: cfe-commits, hansw.

This enables Clang to correctly handle code such as:

```
struct __declspec(dllexport) S {
  int x = 42;
};
```

where it would otherwise assert due to trying to generate the default constructor before the in-class initializer for x has been parsed.

http://reviews.llvm.org/D11850

Files:
  include/clang/Sema/Sema.h
  lib/Sema/Sema.cpp
  lib/Sema/SemaDeclCXX.cpp
  test/CodeGenCXX/dllexport.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D11850.31551.patch
Type: text/x-patch
Size: 8083 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150807/1ead9b22/attachment-0001.bin>


More information about the cfe-commits mailing list