* decl.c (make_typename_type): s/parameters/arguments/.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / range-for8.C
blob38fe4561eb43d55d531cea6b7dfe9eeab2a88d6b
1 // Test for range-based for loop when the declarator declares
2 // a new type
4 // { dg-do compile { target c++11 } }
6 #include <initializer_list>
8 void test()
10     for (struct S { } *x : { (S*)0, (S*)0 } ) // { dg-error "types may not be defined" }
11         ;
13     for (struct S { } x : { S(), S() } ) // { dg-error "types may not be defined" }
14         ;