https://gcc.gnu.org/bugzilla/show_bug.cgi?id=72708
Martin Sebor <msebor at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed| |2016-7-29
--- Comment #3 from Martin Sebor <msebor at gcc dot gnu.org> ---
I've tested a few other compilers besides G++ (Clang 3.9, EDG eccp 4.11, IBM
XLC++, Oracle CC, and Visual C++) and with the exception of Clang, all of them
reject the code with the same error.
I brought it up on the C++ committee's mailing list to see if I was missing
something but the response I got confirms my interpretation that the code is
valid. Very odd.