Author: coppro
Date: Mon Jul 18 12:07:53 2011
New Revision: 135400
URL: http://llvm.org/viewvc/llvm-project?rev=135400&view=rev
Log:
Give A an explicitly non-throwing destructor so that B's destructor is
itself non-throwing. Since nested_exception's destructor is
non-throwing, if B's destructor is not, this causes an error in C++03
mode due to the overriding function having a more lax specification.
This did not occur in C++0x mode as A's destructor was implicitly
non-throwing.
Modified:
libcxx/trunk/test/language.support/support.exception/except.nested/rethrow_if_nested.pass.cpp
Modified:
libcxx/trunk/test/language.support/support.exception/except.nested/rethrow_if_nested.pass.cpp
URL:
http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/language.support/support.exception/except.nested/rethrow_if_nested.pass.cpp?rev=135400&r1=135399&r2=135400&view=diff
==============================================================================
---
libcxx/trunk/test/language.support/support.exception/except.nested/rethrow_if_nested.pass.cpp
(original)
+++
libcxx/trunk/test/language.support/support.exception/except.nested/rethrow_if_nested.pass.cpp
Mon Jul 18 12:07:53 2011
@@ -22,7 +22,7 @@
int data_;
public:
explicit A(int data) : data_(data) {}
- virtual ~A() {}
+ virtual ~A() _NOEXCEPT {}
friend bool operator==(const A& x, const A& y) {return x.data_ == y.data_;}
};
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits