We currently assert-fail on the following input:
enum Color { R, G, B };
typedef struct Color C;
This patch makes setTagNameForLinkagePurposes return early if the declaration is invalid.
Differential D12444
[Sema] Avoid crash on tag-type mismatch (Fixes PR24610) vsk on Aug 28 2015, 11:51 AM. Authored by
Details We currently assert-fail on the following input: enum Color { R, G, B }; This patch makes setTagNameForLinkagePurposes return early if the declaration is invalid.
Diff Detail
Event TimelineComment Actions I think it'd be nice if we keep the assert but make setTagNameForLinkagePurposes early-return if TagFromDeclSpec->isInvalidDecl() returns true. How does that sound to you? |