array11.C failing on all LP64 targets

Kaveh R. Ghazi ghazi@caip.rutgers.edu
Fri Sep 19 14:44:00 GMT 2003


Andrew,

The new testcase you added for PR middle-end/11665 fails on all LP64
targets because of this:

 > Excess errors:
 > g++.dg/init/array11.C:21: warning: cast from pointer to integer of different size

Instead of casting the pointer to unsigned, you need to cast to
"unsigned long" as is done in g++.dg/init/struct1.C or perhaps to
__SIZE_TYPE__.  It's currently failing on mainline and 3.3.x.

		--Kaveh
--
Kaveh R. Ghazi			ghazi@caip.rutgers.edu



More information about the Gcc mailing list