Skip to content

Commit 12b8337

Browse files
committed
C++, fix crash reported in #2536.
1 parent 75b1b4c commit 12b8337

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGES

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ Bugs fixed
5353
* The caption of figure is always put on center even if ``:align:`` was specified
5454
* #2526: LaTeX writer crashes if the section having only images
5555
* #2522: Sphinx touches mo files under installed directory that caused permission error.
56+
* #2536: C++, fix crash when an immediately nested scope has the same name as the current scope.
5657

5758

5859
Release 1.4.1 (released Apr 12, 2016)

sphinx/domains/cpp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2587,7 +2587,7 @@ def direct_lookup(self, key):
25872587
s = s._find_named_symbol(identifier, templateParams,
25882588
templateArgs, operator,
25892589
templateShorthand=False,
2590-
matchSelf=True)
2590+
matchSelf=False)
25912591
if not s:
25922592
return None
25932593
return s

0 commit comments

Comments
 (0)