This fixes https://bugs.llvm.org/show_bug.cgi?id=28500
Diff Detail
Diff Detail
Event Timeline
Comment Actions
This isn't the right approach: instead of re-instantiating the parameter when we encounter a use of it, we should inject the parameters into the local instantiation scope before trying to instantiate a default argument (Sema::CheckCXXDefaultArgExpr should call addInstantiatedParametersToScope to populate the LocalInstantiationScope before calling SubstInitializer).
Comment Actions
Changed the approach to use addInstantiatedParametersToScope as suggested by @rsmith. Since the function was static in another file I made it a member of LocalInstantiationScope and adjusted all callers.
Minor changes:
- Unit test remove link to Bugzilla
- MutiLevelArgList -> MultiLevelArgList