summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/bracket3.C
blob: 4ef7a0e9d3027cd69fcd46d15e5def1bbbc9b330 (plain)
1
2
3
4
5
6
7
8
9
10
// { dg-options "-std=c++98 -Wc++0x-compat" }

template<int N> struct X {};

X<1 >> 2> x; // { dg-warning "will be treated as|suggest parentheses" }

// From cp/parser.c
typedef int Y;
template <int V> struct Foo {};
Foo<Y () >> 5> r; // { dg-warning "will be treated as|suggest parentheses" }