]> granicus.if.org Git - clang/commit
Check "late parsed" friend functions for redefinition
authorAlp Toker <alp@nuanti.com>
Fri, 18 Oct 2013 05:54:24 +0000 (05:54 +0000)
committerAlp Toker <alp@nuanti.com>
Fri, 18 Oct 2013 05:54:24 +0000 (05:54 +0000)
commit530fa4fc800f2788cfe6d4113677ca631d1e801f
tree2c02a59121a3e8c226379f726d57f920d3b74ee6
parent08235661cf457978ba4645ec8e22697aebabe4fa
Check "late parsed" friend functions for redefinition

r177003 applied the late parsed template technique to friend functions
but omitted the corresponding check for redefinitions.

This patch adds the same check already in use for templates to the
new code path in order to diagnose and reject invalid redefinitions
that were being silently accepted.

Fixes PR17324.

Reviewed by Richard Smith.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@192948 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Parse/ParseCXXInlineMethods.cpp
test/Parser/cxx-friend.cpp