vgvassilev / cling

The interactive C++ interpreter Cling
https://rawgit.com/vgvassilev/cling/master/www/index.html
Other
1.76k stars 102 forks source link

Desugar auto types insufficient in the case of template template parameters #183

Closed SylvainCorlay closed 6 years ago

SylvainCorlay commented 6 years ago

The fix in commit 4a226ee47aa5141545ef3488d8c500d58d9d9a61 does not fully solves the issue.

Indeed, in the case of template template parameters, namespaces are still missing.

Minimal reproducer:

namespace b {

    template <class T>
    class Foo
    {
    };

    template <template <class> class T>
    class Bar
    {
    };

    using Baz = Bar<Foo>;
}

auto t = b::Baz();
t
SylvainCorlay commented 6 years ago

Please ignore. The fix worked as expected.