On Tuesday, 7 February 2017 8:57 Richard Biener wrote:
On Tue, 7 Feb 2017, Michal Kubecek wrote:
I tried one of my packages and I get a lot of warnings like this
warning: dynamic exception specifications are deprecated in C++11; use 'noexcept' instead
I found what it's about and I understand the reasoning. But IMHO it's very confusing - and even misleading - that gcc7 adds the "use 'noexcept' instead" part even for declarations with non-empty exception list, e.g.
explicit StatusVector(const IStatus* s) throw(Firebird::BadAlloc);
shouldn't the compiler suggest 'noexcept' only for "throw()" and suggest omitting the throw declaration for non-empty list instead?
I agree. I filed https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79400 to track this and/or get clarification.
Thanks a lot. Michal Kubecek -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org