cling/test/Lookup
Axel Naumann 2b1af22926 In failed lookup, unload only decls produced, not existing fwd decl:
Before, pre-existing fwd decls of specializations got unloaded.

OTOH, any decl produced during (failed) template instantiation must
also be unloaded; see #6331. Those are easiest identified by unloading
the whole (failed) transaction.

```
error: no member named 'value' in 'std::__and_<std::is_copy_assignable<std::__cxx11::basic_string<char> >, std::is_copy_assignable<Inner<int> > >'
                       is_copy_assignable<_T2>>::value,
                       ~~~~~~~~~~~~~~~~~~~~~~~~~~^
```

which is due to the first decl being invalid (as `Inner<int>` does not have a deinition and a `static_assert` /usr/lib/gcc/x86_64-redhat-linux/10/../../../../include/c++/10/type_traits:1093 being triggered), then not unloaded, and then picked up again where we *do* have the definition for `Inner<int>`.

Add test for templt spec lookup vs unloading.
2021-03-18 19:59:03 +01:00
..
args.C Get rid of extra-complex built_cling: 2021-02-25 20:44:18 +01:00
data.C Get rid of extra-complex built_cling: 2021-02-25 20:44:18 +01:00
func.C Get rid of extra-complex built_cling: 2021-02-25 20:44:18 +01:00
linkageSpec.C Fix extern "C" declarations not being called from .x command. 2016-09-16 21:39:49 +02:00
named.C Get rid of extra-complex built_cling: 2021-02-25 20:44:18 +01:00
scope.C Get rid of extra-complex built_cling: 2021-02-25 20:44:18 +01:00
tag.C Get rid of extra-complex built_cling: 2021-02-25 20:44:18 +01:00
template.C In failed lookup, unload only decls produced, not existing fwd decl: 2021-03-18 19:59:03 +01:00
type.C Get rid of extra-complex built_cling: 2021-02-25 20:44:18 +01:00
variadicFunc.C Remove .rawInput from a variety of tests to test unwrapped function input. 2016-09-05 12:44:13 +02:00