]> gcc.gnu.org Git - gcc.git/blob - gcc/testsuite/g++.dg/cpp0x/nsdmi-local.C
PR c++/92590 - wrong handling of inherited default ctor.
[gcc.git] / gcc / testsuite / g++.dg / cpp0x / nsdmi-local.C
1 // PR c++/55240
2 // { dg-do compile { target c++11 } }
3
4 int main()
5 {
6 int q = 1; // { dg-message "declared here" }
7 struct test { int x = q; } instance; // { dg-error "local variable" }
8 }
This page took 0.038555 seconds and 5 git commands to generate.