/* { dg-options "-fdiagnostics-show-caret -std=c++98" } */ template struct foo {}; foo> i; // { dg-error "12: .>>. should be .> >. within a nested template argument list" } /* { dg-begin-multiline-output "" } foo> i; ^~ > > { dg-end-multiline-output "" } */