aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Object/COFFModuleDefinition.cpp
diff options
context:
space:
mode:
authorSerge Pavlov <sepavloff@gmail.com>2017-06-08 06:31:19 +0000
committerSerge Pavlov <sepavloff@gmail.com>2017-06-08 06:31:19 +0000
commit79271ab1549da9114826c15226028144647ba05c (patch)
tree2cbc64f1cf632c1702d98aa0f94fc6a170b23091 /llvm/lib/Object/COFFModuleDefinition.cpp
parent673f44c769ee85e592a8e00d77a6ce4231edf1dc (diff)
downloadllvm-79271ab1549da9114826c15226028144647ba05c.zip
llvm-79271ab1549da9114826c15226028144647ba05c.tar.gz
llvm-79271ab1549da9114826c15226028144647ba05c.tar.bz2
Do not inherit default arguments for friend function in class template.
A function declared in a friend declaration may have declarations prior to the containing class definition. If such declaration defines default argument, the friend function declaration inherits them. This behavior causes problems if the class where the friend is declared is a template: during the class instantiation the friend function looks like if it had default arguments, so error is triggered. With this change friend functions declared in class templates do not inherit default arguments. Actual set of them will be defined at the point where the containing class is instantiated. This change fixes PR12724. Differential Revision: https://reviews.llvm.org/D30393 llvm-svn: 304965
Diffstat (limited to 'llvm/lib/Object/COFFModuleDefinition.cpp')
0 files changed, 0 insertions, 0 deletions