------- Comment #3 from rguenth at gcc dot gnu dot org  2010-06-22 11:08 -------
Reduced testcase (but with more and slightly different errors)

template<typename FP_> class Vec {
    Vec& operator^=(Vec& rhs)     {
        union {
            struct {FP_ x,y,z;};
        };
        X = y*rhs.z() - z*rhs.y();
    }
    Vec& operator^(Vec& rhs) {
        return Vec(*this)^=rhs;
    }
};
Vec<double> v(3,4,12);
Vec<double>V(12,4,3);
Vec<double> c = v^V;


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to work|                            |3.4.6
            Summary|ICE after error: anonymous  |[4.3/4.4/4.5/4.6 Regression]
                   |struct not inside named type|ICE after error: anonymous
                   |                            |struct not inside named type


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44625

Reply via email to