Instantiate C++ templates at end of file. (#6084)

Mark C++ functions as used when overload resolution selects them, and
trigger Clang's end-of-TU processing at the end of the Carbon
compilation to perform instantiation and other pending cleanup steps.
This commit is contained in:
Richard Smith
2025-09-17 01:06:47 +00:00
committed by GitHub
parent 6086d6eef2
commit 65a7e50037
9 changed files with 144 additions and 18 deletions
+2 -2
View File
@@ -14,13 +14,13 @@
enum { a, b, c };
void F(decltype(a));
void F(decltype(a)) {}
class C {
public:
enum { d, e, f };
void F(decltype(d));
void F(decltype(d)) {}
};
// --- copy_enum.carbon