// { dg-do "compile" } // { dg-options "-std=gnu++0x" } template class X { /* ... */ }; X< 1>2 > x1; // // { dg-error "numeric constant" } X<(1>2)> x2; // Okay. template class Y { /* ... */ }; Y> x3; // Okay, same as "Y > x3;". Y>1>> x4; // { dg-error "numeric constant" } Y>1)>> x5; // Okay