Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/g++.old-deja/g++.bugs/900519_07.C @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
// { dg-do assemble } // g++ 1.37.1 bug 900519_07 // It is illegal to specify or to use array-of-reference types, yet g++ // allows them to be specified (in typedef statements and in declarations) // and to be used (in declarations). // keywords: reference types, array types int i; int j; typedef int& int_ref; typedef int_ref int_ref_array_type[2]; // { dg-error "17:declaration of .int_ref_array_type. as array of references" } missed int& int_ref_array_obj0[2] = { i, j }; // { dg-error "6:declaration of .int_ref_array_obj0. as array of references" } missed int_ref int_ref_array_obj1[2] = { i, j }; // { dg-error "9:declaration of .int_ref_array_obj1. as array of references" } missed