http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45908
--- Comment #7 from Jonathan Wakely <redi at gcc dot gnu.org> 2010-10-06 14:45:53 UTC --- (In reply to comment #5) > But paragraph 7 also applies (name used in a class outside a member function > body), so the name needs to be declared before its use. thanks, I missed that. So the testcase in comment 3 is invalid (I'll open a new PR for the dup diagnostic) re comment 2, is 4.5 correct to use a non-const access path to v.begin() in the trailing-return-type?