the attached test case builds with 4.3.2 and 4.4.0, but not with 4.2.4 and 4.3.3.
$ g++ -c SmartSearcher.ii In file included from SmartSearcher.cc:23: Printer.h: In member function 'CollPrinter& CollPrinter::operator=(const std::pair<_T1, _T2>&)': Printer.h:103: error: expected primary-expression before ':' token -- Summary: [4.3 regression] fails to build valid code Product: gcc Version: 4.3.3 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: doko at ubuntu dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38933