PR c++/85765 - SFINAE and non-type default template arg.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / nsdmi-local.C
blob2330365f7ce12a781ac860941c64af09d009c802
1 // PR c++/55240
2 // { dg-do compile { target c++11 } }
4 int main()
6     int q = 1;                           // { dg-message "declared here" }
7     struct test { int x = q; } instance; // { dg-error "local variable" }