http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51841
Bug #: 51841 Summary: iterator weirdness. I couldn't tell you what's going on here Classification: Unclassified Product: gcc Version: 4.6.2 Status: UNCONFIRMED Severity: major Priority: P3 Component: c++ AssignedTo: unassig...@gcc.gnu.org ReportedBy: marcus-y...@ihug.co.nz Whenever I start using vector::iterators I start running into a variety of completely unhelpful[probably delusional] compile errors. Attached is a simple, perfectly reasonable source file that provokes such an error. compilation: g++-4.6 -std=c++0x 1.cpp As you can see you get comparable results from using a bare sub-class that has a similar position as vector::iterators. In the less trivial source file I got the complaint "porousVect.cpp:67:36: error: ‘std::vector<T, std::allocator<T> >::iterator’ is not a type". It so /is/. If you'd like to look at that one too I'll strip it down and post it for you.