------- Comment #2 from coppro at users dot sf dot net  2009-08-12 06:26 -------
[basic.scope.class]:
3) If reordering member declarations in a class yields an alternate valid
program under (1) and (2), the program is ill-formed, no diagnostic is
required.

Otherwise, the program is well-formed, and while a warning is nice, it's not
correct for GCC to reject this code.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41039

Reply via email to