David Blaikie aa3bf6ce72 Modules: Search for a visible definition of the decl context when computing visibility of a default template parameter
The code is/was already correct for the case where a parameter is a
parameter of its enclosing lexical DeclContext (functions and classes).
But for other templates (alias and variable templates) they don't create
their own scope to be members of - in those cases, they parameter should
be considered visible if any definition of the lexical decl context is
visible.

[this should cleanup the failure on the libstdc++ modules buildbot]
[this doesn't actually fix the variable template case for a
secondary/compounding reason (its lexical decl context is incorrectly
considered to be the translation unit)]

Test covers all 4 kinds of templates with default args, including a
regression test for the still broken variable template case.

Reviewers: rsmith

Differential Revision: https://reviews.llvm.org/D60892

llvm-svn: 358795
2019-04-19 23:02:30 +00:00
..
2017-01-26 23:07:59 +00:00
2017-01-26 23:07:59 +00:00
2014-08-25 23:33:46 +00:00
2014-12-23 19:30:13 +00:00
2014-10-01 23:16:30 +00:00
2016-04-28 14:13:28 +00:00
2016-07-22 20:49:31 +00:00
2015-01-22 23:07:47 +00:00
2015-08-09 01:50:14 +00:00