From 12b83372ac9316e8cbe86e7fed889296a4cc29ee Mon Sep 17 00:00:00 2001 From: Jakob Lykke Andersen Date: Fri, 13 May 2016 09:22:46 +0900 Subject: [PATCH] C++, fix crash reported in #2536. --- CHANGES | 1 + sphinx/domains/cpp.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGES b/CHANGES index ab2bd65a1..d4e5f952b 100644 --- a/CHANGES +++ b/CHANGES @@ -53,6 +53,7 @@ Bugs fixed * The caption of figure is always put on center even if ``:align:`` was specified * #2526: LaTeX writer crashes if the section having only images * #2522: Sphinx touches mo files under installed directory that caused permission error. +* #2536: C++, fix crash when an immediately nested scope has the same name as the current scope. Release 1.4.1 (released Apr 12, 2016) diff --git a/sphinx/domains/cpp.py b/sphinx/domains/cpp.py index 6306ac901..2d28a71fb 100644 --- a/sphinx/domains/cpp.py +++ b/sphinx/domains/cpp.py @@ -2587,7 +2587,7 @@ class Symbol(object): s = s._find_named_symbol(identifier, templateParams, templateArgs, operator, templateShorthand=False, - matchSelf=True) + matchSelf=False) if not s: return None return s