Mailinglist Archive: opensuse-factory (807 mails)

< Previous Next >
Re: [opensuse-factory] GCC 7 Transition
  • From: Michal Kubecek <mkubecek@xxxxxxx>
  • Date: Tue, 07 Feb 2017 09:55:48 +0100
  • Message-id: <4976587.p1IrKf67q0@alaris>
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@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-factory+owner@xxxxxxxxxxxx

< Previous Next >