llvm-project/clang/test/CXX/special
Haojian Wu 89d9912cbf [AST] dont invaliate VarDecl when the initializer contains errors.
Summary:
This patch contains 2 separate changes:
1) the initializer of a variable should play no part in decl "invalid" bit;
2) preserve the invalid initializer via recovery exprs;

With 1), we will regress the diagnostics (one big regression is that we loose
the "selected 'begin' function with iterator type" diagnostic in for-range stmt;
but with 2) together, we don't have regressions (the new diagnostics seems to be
improved).

Reviewers: sammccall

Reviewed By: sammccall

Subscribers: cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D78116
2020-04-21 10:53:35 +02:00
..
class.conv/class.conv.ctor
class.copy [AST] dont invaliate VarDecl when the initializer contains errors. 2020-04-21 10:53:35 +02:00
class.ctor [AST] Dont invalide VarDecl even the default initializaiton is failed. 2020-04-14 12:58:48 +02:00
class.dtor Add a test triple to avoid failure under MS ABI. 2020-03-12 16:44:09 -07:00
class.free
class.inhctor When diagnosing the lack of a viable conversion function, also list 2020-01-09 15:15:02 -08:00
class.init C++ DR2026: static storage duration variables are not zeroed before 2020-02-06 16:37:22 -08:00
class.temporary PR24164, PR39336: init-captures are not distinct full-expressions. 2018-10-19 19:01:34 +00:00