https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65890
--- Comment #2 from frankhb1989 at gmail dot com --- Tested here: http://melpon.org/wandbox/, both G++ 5.1 and 6.0 accepted the invalid code.
frankhb1989 at gmail dot com Sat, 25 Apr 2015 11:10:02 -0700
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65890
--- Comment #2 from frankhb1989 at gmail dot com --- Tested here: http://melpon.org/wandbox/, both G++ 5.1 and 6.0 accepted the invalid code.