------- Comment #2 from greifel at megatop200 dot com 2006-09-23 16:29 ------- According to 1.4/8 implementations with extensions are required to "diagnose programs that use extensions that are ill-formed according to this International Standard." This code is ill-formed so presumably g++ should print a warning.
I don't know the motivation for the extension but would highlight the question of whether it was intentional that it affects non-const arguments but not const. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29188