mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-25 23:51:12 +00:00
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:
1 parent
6086d6eef2
commit
65a7e50037
9 files changed
+144
-18
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user