[PATCH] Sema: When merging typedefs, handle records before merging attributes

Justin Bogner mail at justinbogner.com
Fri Oct 4 13:01:00 PDT 2013

The following is warning that "attribute declaration must precede
definition" in C++ in ToT:

typedef struct S {
  // ...
} S __attribute__((...));

This started happening in r186373. The attached patch fixes when
mergeDeclAttributes happens in MergeTypedefNameDecl to avoid this. Okay
to commit?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Sema-When-merging-typedefs-handle-records-before-mer.patch
Type: text/x-patch
Size: 2538 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20131004/1143159d/attachment.bin>

More information about the cfe-commits mailing list