]> granicus.if.org Git - clang/commit
Fix defaulted member functions for templated classes.
authorRichard Trieu <rtrieu@google.com>
Tue, 27 Sep 2016 22:28:59 +0000 (22:28 +0000)
committerRichard Trieu <rtrieu@google.com>
Tue, 27 Sep 2016 22:28:59 +0000 (22:28 +0000)
commitc56ff5ff150460f7a5c6884ae3b1f253e39b3c35
tree5d0dea30fe9b1d3774760e33babab80cd9221aca
parentc9b94800038832619dc1b68ca35ade88060d227b
Fix defaulted member functions for templated classes.

In some cases, non-special member functions were being marked as being defaulted
in templated classes.  This can cause interactions with later code that expects
the default function to be one of the specific member functions.  Fix the check
so that templated class members are checked the same way as non-templated class
members are.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@282547 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaDeclCXX.cpp
test/SemaCXX/cxx0x-defaulted-functions.cpp