// PR c++/62212 // { dg-do compile } typedef int my_int; template struct X { enum {value = 1}; }; template void f(const my_int(&)[X::value]); int main() { const my_int a[1] = {}; f(a); } // { dg-final { scan-assembler "_Z1fIvEvRAsr1XIT_E5value_Ki" } }