------- Comment #3 from jwakely dot gcc at gmail dot com 2009-08-10 11:35 ------- (In reply to comment #2) > Note that if you put the declaration of 'int number;' first then Comeau has a > very similar error to GCC's when the member function is first - it complains > about the invalid member initializer and about the return statement in the > member function. i.e. when the member function is declared later, Comeau's > name lookup finds that one, and behaves similarly to GCC.
Just to be clear: this means Comeau also prints the error that you consider to be redundant. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41002