From deb144ab515c6995eaa750bcf4207ca24724dfbb Mon Sep 17 00:00:00 2001 From: Fariborz Jahanian Date: Fri, 20 Jul 2012 17:19:54 +0000 Subject: Fixes an ObjC++ parse crash caused by delayed parsing of c-functions nested in namespace in method implementations by turning off its delayed parsing until a proper solution is figured out. pr13418 llvm-svn: 160552 --- clang/test/SemaObjCXX/delay-parsing-cfunctions.mm | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'clang/test/SemaObjCXX/delay-parsing-cfunctions.mm') diff --git a/clang/test/SemaObjCXX/delay-parsing-cfunctions.mm b/clang/test/SemaObjCXX/delay-parsing-cfunctions.mm index fbdf8bad0aa..fa65dbea9ec 100644 --- a/clang/test/SemaObjCXX/delay-parsing-cfunctions.mm +++ b/clang/test/SemaObjCXX/delay-parsing-cfunctions.mm @@ -41,4 +41,8 @@ int x{17}; X::X() = default; void X::SortWithCollator() {} +// pr13418 +namespace { + int CurrentTabId() {return 0;} +} @end -- cgit v1.2.3