summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/libstdcxx_pair_swap_hack.cpp
Commit message (Collapse)AuthorAgeFilesLines
* PR21565: Further refine the conditions for enabling eager parsing ofRichard Smith2014-11-201-10/+37
| | | | | | | | std::X::swap exception specifications (allowing parsing of non-conforming code in libstdc++). The old conditions also matched the functions in MSVC's STL, which were relying on deferred parsing here. llvm-svn: 222471
* PR21565 Add an egregious hack to support broken libstdc++ headers that declareRichard Smith2014-11-141-0/+47
a member named 'swap' and then expect unqualified lookup for the name 'swap' in its exception specification to find anything else. Without delay-parsed exception specifications, this was ill-formed (NDR) by [basic.scope.class]p1, rule 2. With delay-parsed exception specifications, the call to 'swap' unambiguously finds the function being declared, which then fails because the arguments don't work for that function. llvm-svn: 221955
OpenPOWER on IntegriCloud