llvm-project/clang/test/CXX
Richard Smith a91de375f2 Promote a warning on ill-formed code (redeclaration missing an exception
specification) to an error. No compiler other than Clang seems to allow this,
and it doesn't seem like a useful thing to accept as an extension in general.

The current behavior was added for PR5957, where the problem was specifically
related to mismatches of the exception specification on the implicitly-declared
global operator new and delete. To retain that workaround, we downgrade the
error to an ExtWarn when the declaration is of a replaceable global allocation
function.

Now that this is an error, stop trying (and failing) to recover from a missing
computed noexcept specification. That recovery didn't work, and led to crashes
in code like the added testcase.

llvm-svn: 248867
2015-09-30 00:48:50 +00:00
..
basic [Sema] main can't be declared as global variable, in C++. 2015-08-14 14:13:29 +00:00
class DR1909: Diagnose all invalid cases of a class member sharing its name with the class. 2015-07-06 01:45:27 +00:00
class.access [modules] In C++, stop serializing and deserializing a list of declarations in 2015-07-21 23:54:07 +00:00
class.derived PR6037 2015-01-19 01:44:02 +00:00
concepts-ts/dcl.dcl/dcl.spec/dcl.concept [Concepts] Moving tests to match the corresponding section of the TS 2015-09-18 02:50:53 +00:00
conv PR6037 2015-01-19 01:44:02 +00:00
dcl.dcl PR24612: Don't bail out of checking a constexpr function before checking 2015-08-28 22:33:53 +00:00
dcl.decl [Sema] Emit a better diagnostic when variable redeclarations disagree 2015-07-14 20:08:49 +00:00
drs Promote a warning on ill-formed code (redeclaration missing an exception 2015-09-30 00:48:50 +00:00
except Promote a warning on ill-formed code (redeclaration missing an exception 2015-09-30 00:48:50 +00:00
expr Clarify the error message when the reason the conversion is not viable is because the returned value does not match the function return type. 2015-08-25 22:18:46 +00:00
lex [Lex] A source-file new-line in a raw string literal results in a new-line 2015-09-23 16:04:47 +00:00
over [Sema] Be consistent about diagnostic wording: always use "cannot". 2015-08-15 15:23:14 +00:00
special Unify warnings/errors from "maybe you meant" to "did you mean". 2015-04-02 22:10:06 +00:00
stmt.stmt Sema: Allow 'constexpr' variables in range loops 2015-02-18 18:34:59 +00:00
temp PR20073: promote "dereference of 'void*'" from Extension to ExtWarn. 2015-05-19 01:41:12 +00:00