1 2 3 4 5 6 7 8 9 10 11 12 13
// RUN: %clang_cc1 -verify %s -std=c++11 template<const int I> struct S { decltype(I) n; int &&r = I; }; S<5> s; template<typename T, T v> struct U { decltype(v) n; int &&r = v; }; U<const int, 6> u;