URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Subversion Repositories openrisc_2011-10-31
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.old-deja/] [g++.jason/] [access20.C] - Rev 149
Go to most recent revision | Compare with Previous | Blame | View Log
// { dg-do assemble }
// PRMS Id: 6662
// Bug: we crash trying to check the access on anglesSinesCosines.
#define Double double
class GCTransform
{
protected:
struct angle
{
Double phi1 ;
Double phi2 ;
} ;
struct sineAndCosine
{
Double cosine1 ;
Double cosine2 ;
Double sine1 ;
Double sine2 ;
} ;
union anglesSinesCosines
{
struct angle a ;
struct sineAndCosine siCo ;
} ;
};
class GCTransTransmit : public GCTransform
{
protected:
struct GCTransTransmitDataTemp
{
union anglesSinesCosines t ; // causes abort
} ;
} ;
Go to most recent revision | Compare with Previous | Blame | View Log