clang icon indicating copy to clipboard operation
clang copied to clipboard

namespace scoping is not handled properly in function and template parameters

Open dkrupp opened this issue 6 years ago • 2 comments

structural equivalence currently does not take namespace into consideration, but it should.

file: a.cc namespace x{ class a; } void f(x::a);

file: imported.cc namespace y{ class a; } void f(y::a);

The error is that f(x::a) is said to be equivalent with f(y::a) and the import fails.

There is such error in bitcoin.

dkrupp avatar Mar 07 '19 10:03 dkrupp

There is a related pull request #629.

balazske avatar Mar 08 '19 16:03 balazske

there is a suspected problem with astreader in ASTContext getCanonicalTemplateTemplateParmDecl(..)

dkrupp avatar Mar 21 '19 10:03 dkrupp