diff options
author | Patrick Walton <pcwalton@mimiga.net> | 2021-04-23 14:40:26 -0700 |
---|---|---|
committer | Emilio Cobos Álvarez <emilio@crisal.io> | 2021-04-27 01:32:44 +0200 |
commit | f597e2777355e358a8f2c5a96d98326f3bf624d9 (patch) | |
tree | 0378356544cb863d1ef67af02ba8a204b45e8e83 /src/codegen/impl_debug.rs | |
parent | 91ec529f54398e3fc457b6f1a1ba4c1cf928cf9d (diff) |
Translate types that were declared inside functions as opaque types.
This fixes a panic with the following header:
template<typename T>
struct Foo {};
template<typename T>
Foo<T> foo{};
void f() {
struct Bar {
Bar() {}
};
foo<Bar>;
}
Because we don't parse the insides of function bodies, code like this could
cause us to parse a type (here, `Bar`) that we didn't see in our initial pass,
which can cause subtle problems.
Closes #2036.
Diffstat (limited to 'src/codegen/impl_debug.rs')
0 files changed, 0 insertions, 0 deletions