Modules: Search for a visible definition of the decl context when computing visibility of a default template parameterThe code is/was already correct for the case where a parameter is aparameter o
Modules: Search for a visible definition of the decl context when computing visibility of a default template parameterThe code is/was already correct for the case where a parameter is aparameter of its enclosing lexical DeclContext (functions and classes).But for other templates (alias and variable templates) they don't createtheir own scope to be members of - in those cases, they parameter shouldbe considered visible if any definition of the lexical decl context isvisible.[this should cleanup the failure on the libstdc++ modules buildbot][this doesn't actually fix the variable template case for asecondary/compounding reason (its lexical decl context is incorrectlyconsidered to be the translation unit)]Test covers all 4 kinds of templates with default args, including aregression test for the still broken variable template case.Reviewers: rsmithDifferential Revision: https://reviews.llvm.org/D60892llvm-svn: 358795
show more ...