------- Comment #6 from pinskia at gcc dot gnu dot org 2005-11-01 04:36 ------- Reduced testcase: struct string; struct _Deque_iterator { string &operator*() const; }; template<typename _Function> void for_each(_Function __f) { _Deque_iterator __first1; __f(*__first1); } struct locale { locale(const locale& __other) throw(); }; template<typename SequenceT> void trim(string& Input, const locale& Loc=locale()); int main() { for_each(trim<string>); } ----
This one also ICEs with ICC. I will let someone else decide if this is valid or invalid code and then confirm it. -- pinskia at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |pinskia at gcc dot gnu dot | |org Known to fail| |2.95.3 3.3.3 3.4.0 4.0.0 | |4.1.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24602