GCC 4.0.2 dereference pointer to double type member of structure raises SIGBUS error
The follow sample code looks OK to me but always fails executing on Solaris with SIGBUS error if compiled with GCC 4.0.2, however it runs fine if compiled with GCC 3.4.2 version. Any thought?

            //params is a pointer to a structure Param, which has a member d whose type is double.

            params->d = 5.0;
            double *b = &params->d;
            double c = params->d;
            c += *b;

Thanks,
Charles
GCC 4.0.2 dereference pointer to double type member of structure raises SIGBUS error
===

The follow sample code looks OK to me but always fails executing on Solaris with SIGBUS error if compiled with GCC 4.0.2, however it runs fine if compiled with GCC 3.4.2 version. Any thought?

            //params is a pointer to a structure Param, which has a member d whose type is double.

            params->d = 5.0;
            double *b = &params->d;
            double c = params->d;
            c += *b;

Thanks,
Charles