Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/g++.dg/cpp0x/auto3.C @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | 04ced10e8804 |
children |
comparison
equal
deleted
inserted
replaced
131:84e7813d76e9 | 145:1830386684a0 |
---|---|
8 // If the type deduced for the template parameter U is not the same in each | 8 // If the type deduced for the template parameter U is not the same in each |
9 // deduction, the program is ill-formed. | 9 // deduction, the program is ill-formed. |
10 auto i = 42, j = 42.0; // { dg-error "auto" } | 10 auto i = 42, j = 42.0; // { dg-error "auto" } |
11 | 11 |
12 // New CWG issue | 12 // New CWG issue |
13 auto a[2] = { 1, 2 }; // { dg-error "auto|initializer_list" } | 13 auto a[2] = { 1, 2 }; // { dg-error "6:.a. declared as array of .auto" } |
14 | 14 |
15 template<class T> | 15 template<class T> |
16 struct A { }; | 16 struct A { }; |
17 | 17 |
18 A<int> A1; | 18 A<int> A1; |