[Bug c++/83624] Strong using deprecation warning in C++03
msebor at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sat Feb 17 01:03:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83624
Martin Sebor <msebor at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
CC| |msebor at gcc dot gnu.org
Resolution|--- |WONTFIX
--- Comment #5 from Martin Sebor <msebor at gcc dot gnu.org> ---
Support for attribute strong was removed in GCC 8 via r248337. GCC now issues
the following warning (and provides no option to suppress it):
$ cat pr83624.C && gcc -S -Wall -Wextra pr83624.C
namespace my_ns {}
using namespace my_ns __attribute__((__strong__));
pr83624.C:2:49: warning: strong using directive no longer supported
using namespace my_ns __attribute__((__strong__));
^
pr83624.C:1:11: note: you may use an inline namespace instead
namespace my_ns {}
^~~~~
I'm sympathetic to the argument for continuing to support it but I'm afraid the
decision has already been made and implemented and it seems quite unlikely that
it will be reversed. So resolving as won't fix.
More information about the Gcc-bugs
mailing list