http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45908
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2010.10.06 10:15:52
Ever Confirmed|0 |1
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> 2010-10-06
10:15:52 UTC ---
first testcase reduced:
struct vector {
struct iterator { };
struct const_iterator { };
iterator begin();
const_iterator begin() const;
};
class block {
vector v;
auto end() const -> decltype(v.begin()) { return v.begin(); }
};
4.5 doesn't ICE but gives an error here (because 'this' isn't const in the late
return type)