Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fails to resolve dependent name type #328

Open
jslee02 opened this issue May 5, 2020 · 1 comment
Open

Fails to resolve dependent name type #328

jslee02 opened this issue May 5, 2020 · 1 comment

Comments

@jslee02
Copy link
Member

jslee02 commented May 5, 2020

chimera fails to resolve clang::DependentNameType such as typename S::Scalar in the following code:

template <typename T>
class Vector {
public:
  using Scalar = T;
};

template<typename S>
struct ScalarTrait {
  typedef typename S::Scalar type;
};

using VectorScalar = ScalarTrait<Vector<double>>::type;

that throws an exception as

chimera.util.resolveDeclaration:1:18: error: use of undeclared identifier 'S'
typedef typename S::Scalar chimera_placeholder_4;
                 ^
chimera.util.resolveDeclaration:1:21: error: expected a qualified name after 'typename'
typedef typename S::Scalar chimera_placeholder_4;
                    ^
chimera.util.resolveDeclaration:1:27: error: expected ';' after top level declarator
typedef typename S::Scalar chimera_placeholder_4;
@jslee02
Copy link
Member Author

jslee02 commented May 5, 2020

This is suppressed by #329, but it needs to be resolved correctly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant