llvm-project/clang/test/CXX/drs
Nico Weber 6a6376b17c Implement the likely resolution of core issue 253.
C++11 requires const objects to have a user-provided constructor, even for
classes without any fields. DR 253 relaxes this to say "If the implicit default
constructor initializes all subobjects, no initializer should be required."

clang is currently the only compiler that implements this C++11 rule, and e.g.
libstdc++ relies on something like DR 253 to compile in newer versions.  This
change  makes it possible to build code that says `const vector<int> v;' again
when using libstdc++5.2 and _GLIBCXX_DEBUG
(https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60284).

Fixes PR23381.

http://reviews.llvm.org/D16552

llvm-svn: 261297
2016-02-19 01:52:46 +00:00
..
dr0xx.cpp Update tests touched by r249656 2015-10-08 06:31:22 +00:00
dr1xx.cpp P0002R1: increment on expressions of type bool is no longer allowed in C++1z. 2015-11-26 02:16:37 +00:00
dr2xx.cpp DR295: cv-qualifiers on function types are ignored in C++. 2015-05-14 19:10:42 +00:00
dr3xx.cpp Update tests touched by r249656 2015-10-08 06:31:22 +00:00
dr4xx.cpp Implement the likely resolution of core issue 253. 2016-02-19 01:52:46 +00:00
dr5xx.cpp Improve diagnostic for the case where a function template candidate is rejected 2015-12-31 02:02:54 +00:00
dr6xx.cpp PR22208: On FreeBSD systems, __STDC_MB_MIGHT_NEQ_WC__ is expected to be defined 2015-01-13 01:47:45 +00:00
dr7xx.cpp Mark DR777 only as fixed in clang SVN. 2015-03-27 17:38:35 +00:00
dr9xx.cpp [Parse] Allow 'constexpr' in condition declarations 2015-06-25 22:06:40 +00:00
dr10xx.cpp DR1048: drop top-level cv-qualifiers when deducing the return type of a 2014-12-19 22:10:51 +00:00
dr12xx.cpp Mark DR1250 as implemented 2016-02-01 01:33:17 +00:00
dr13xx.cpp N3922: direct-list-initialization of an auto-typed variable no longer deduces a 2015-11-11 01:36:17 +00:00
dr14xx.cpp DR1467: If aggregate initialization encounters an initializer list for which 2015-02-16 04:42:59 +00:00
dr15xx.cpp Add some more tests for initializer lists related to CWG1591 2015-12-11 01:04:30 +00:00
dr16xx.cpp Improve the "braces around scalar init" warning to determine whether to warn 2015-02-12 01:50:05 +00:00
dr17xx.cpp Re-arrange DR test cases, and update DR status page. 2015-01-28 01:01:21 +00:00
dr18xx.cpp DR1684: a constexpr member function need not be a member of a literal class type. 2014-12-16 23:12:52 +00:00
dr19xx.cpp DR1909: Diagnose all invalid cases of a class member sharing its name with the class. 2015-07-06 01:45:27 +00:00
dr412.cpp C++14: Disable sized deallocation by default due to ABI breakage 2015-03-20 00:31:07 +00:00
dr1748.cpp Update cxx_dr_status to cover dr1748 and add test. 2015-02-14 03:38:31 +00:00