[PATCH] D39133: [Sema] Better fix for tags defined inside an enumeration (PR28903).

2017-12-13 Thread Volodymyr Sapsai via Phabricator via cfe-commits
vsapsai added a comment. Ping. The change can be still applied on trunk without changes, all tests are passing. https://reviews.llvm.org/D39133 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[PATCH] D39133: [Sema] Better fix for tags defined inside an enumeration (PR28903).

2017-10-20 Thread Volodymyr Sapsai via Phabricator via cfe-commits
vsapsai created this revision. When we encounter an opening parenthesis and parse the rest as type cast, use DeclSpecContext DSC_type_specifier so we hit the existing check that prevents defining tags in contexts where type specifier is expected. This reverts implementation done in r313386,