Failure of test g++.dg/init/array10.C

Billinghurst, David (CRTS) David.Billinghurst@riotinto.com
Fri Jul 18 06:49:00 GMT 2003


I have been working though the irix failures for 3.4.  
Test g++.dg/init/array10.C fails on most platforms with 

	[...]/array10.C:5: error: ISO C++ forbids compound-literals

Is this a bug or an invalid test?


The test is

// { dg-do compile }

typedef int __attribute__((mode(V2SI))) vec;

vec foo[] = { (vec) {1, 2} };



More information about the Gcc-bugs mailing list