[PATCH] D16770: [MS] PR26234: Allow typedef redefinition of equally qualified, sized and aligned types in C

Denis Zobnin via cfe-commits cfe-commits at lists.llvm.org
Mon Feb 1 06:47:53 PST 2016


d.zobnin.bugzilla created this revision.
d.zobnin.bugzilla added reviewers: rnk, majnemer.
d.zobnin.bugzilla added a subscriber: cfe-commits.

Allow typedef redefinition with different types in C if the types are equally qualified, sized and aligned. MSVC allows such redefinition, emits warning C4142: "benign redefinition of type" and propagates the type from the first typedef declaration in the entire redeclaration chain. 

http://reviews.llvm.org/D16770

Files:
  include/clang/AST/ASTContext.h
  include/clang/Basic/DiagnosticSemaKinds.td
  lib/AST/ASTContext.cpp
  lib/Sema/SemaDecl.cpp
  test/Sema/ms-benign-typedef-redef.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D16770.46530.patch
Type: text/x-patch
Size: 11907 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160201/b533550f/attachment-0001.bin>


More information about the cfe-commits mailing list