forked from OSchip/llvm-project
Remove a recovery attempt that was untested and crashed when used.
Found by SLi's bot. llvm-svn: 229532
This commit is contained in:
parent
b811c1d6a5
commit
f91435e16d
|
@ -1810,13 +1810,7 @@ QualType Sema::BuildMemberPointerType(QualType T, QualType Class,
|
|||
// exception specification.
|
||||
if (CheckDistantExceptionSpec(T)) {
|
||||
Diag(Loc, diag::err_distant_exception_spec);
|
||||
|
||||
// FIXME: If we're doing this as part of template instantiation,
|
||||
// we should return immediately.
|
||||
|
||||
// Build the type anyway, but use the canonical type so that the
|
||||
// exception specifiers are stripped off.
|
||||
T = Context.getCanonicalType(T);
|
||||
return QualType();
|
||||
}
|
||||
|
||||
// C++ 8.3.3p3: A pointer to member shall not point to ... a member
|
||||
|
|
|
@ -12,6 +12,7 @@ class H : A {}; // expected-note 2{{implicitly declared private here}}
|
|||
int A::*pdi1;
|
||||
int (::A::*pdi2);
|
||||
int (A::*pfi)(int);
|
||||
void (*A::*ppfie)() throw(); // expected-error {{exception specifications are not allowed beyond a single level of indirection}}
|
||||
|
||||
int B::*pbi; // expected-warning{{use of enumeration in a nested name specifier is a C++11 extension}} \
|
||||
// expected-error {{'pbi' does not point into a class}}
|
||||
|
|
Loading…
Reference in New Issue