This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/44625] [4.3/4.4/4.5/4.6 Regression] ICE after error: anonymous struct not inside named type
- From: "rguenth at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 22 Jun 2010 11:08:03 -0000
- Subject: [Bug c++/44625] [4.3/4.4/4.5/4.6 Regression] ICE after error: anonymous struct not inside named type
- References: <bug-44625-11764@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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