]> granicus.if.org Git - clang/commit
Modify an assert to capture the restriction on friend declarations more
authorJohn McCall <rjmccall@apple.com>
Tue, 25 Aug 2009 17:53:59 +0000 (17:53 +0000)
committerJohn McCall <rjmccall@apple.com>
Tue, 25 Aug 2009 17:53:59 +0000 (17:53 +0000)
commit91cf4199cca311ea9c3b3a4e2b3984d508c9e5e3
treeba8138ea91c12a096903691e480bda60f87df4e9
parent05396e20d68535612f58c84e0dfc7647c75a7da1
Modify an assert to capture the restriction on friend declarations more
accurately.  Prevents the assert from triggering incorrectly when friending
functions first declared in extern "C" contexts.  Fixes bug 4757.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@80016 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaDecl.cpp
test/CXX/class/class.friend/p1.cpp