* doc/invoke.texi: Document -std=c++17 and -std=gnu++17 and document
[official-gcc.git] / gcc / testsuite / g++.dg / cpp1z / nontype-auto1.C
blobdef697c1a47b73179bfb4c395d4f7e29319a39cd
1 // Testcase from P0127R2
2 // { dg-options -std=c++17 }
4 template <long n> struct A { };
6 template <class T> struct C;
7 template <class T, T n> struct C<A<n>>
9     using Q = T;
12 typedef long R;
13 typedef C<A<2>>::Q R;  // OK; T was deduced to long from the template argument value in the type A<2>