Compiling the testcase g++.dg/template/error10.C produces too many duplicate error messages about missing '>'. The error location contains invalid token '>>' that should be replaced with '> >'.
error10.C:12: error: '>>' should be '> >' within a nested template argument list error10.C:13: error: spurious '>>', use '>' to terminate a template argument list error10.C:57: error: a call to a constructor cannot appear in a constant-expression error10.C:57: error: template argument 1 is invalid error10.C:57: error: invalid type in declaration before ';' token error10.C:69: error: missing '>' to terminate the template argument list error10.C:69: error: template argument 1 is invalid error10.C:69: error: missing '>' to terminate the template argument list error10.C:69: error: template argument 1 is invalid error10.C:69: error: missing '>' to terminate the template argument list error10.C:69: error: template argument 1 is invalid error10.C:69: error: missing '>' to terminate the template argument list ... -- Summary: [4.0 Regression] Excessive duplicate error messages trying to treat '>>' as '> >' Product: gcc Version: 4.0.0 Status: UNCONFIRMED Keywords: diagnostic Severity: minor Priority: P2 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: lerdsuwa at gcc dot gnu dot org CC: gcc-bugs at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19366