https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94768
--- Comment #3 from David Binderman <dcb314 at hotmail dot com> --- (In reply to Jonathan Wakely from comment #1) > This is a valid C++ program and it would be non-conforming to reject it. Surprising. The standard looks broken to me. Standards conformance only really matters if GNU C++ is in standards conformance mode. Most of the time, it is in its own GNU mode and so could do a more useful job here rather than IMHO blindly following non-useful standards. I checked the source code of the popular Fedora Linux distribution. There are 32 examples of this problem in the C++ code, so they will need fixing. Interestingly, there are a whopping 258 examples in the C code, but that's a separate issue.