OSDN Git Service

PR c++/43856
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / cpp0x / bracket3.C
1 // { dg-options "-std=c++98 -Wc++0x-compat" }
2
3 template<int N> struct X {};
4
5 X<1 >> 2> x; // { dg-warning "will be treated as|suggest parentheses" }
6
7 // From cp/parser.c
8 typedef int Y;
9 template <int V> struct Foo {};
10 Foo<Y () >> 5> r; // { dg-warning "will be treated as|suggest parentheses" }