This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/20185] assignment error in inline function
- From: "falk at debian dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 24 Feb 2005 14:21:22 -0000
- Subject: [Bug c++/20185] assignment error in inline function
- References: <20050224102935.20185.dirk@cle-mens.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From falk at debian dot org 2005-02-24 14:21 -------
(In reply to comment #4)
> (In reply to comment #3)
> > (In reply to comment #2)
> > > (In reply to comment #1)
> >
> > You are accessing an object of type "class data" through an lvalue of type
> > "uint64". The type "uint64" here matches none of the mentioned cases;
>
> But if you take this line:
> inline data::operator uint64 () const
> { return *(uint64*)&lo; }
> ... we have no class data.
But an object of type uint32 = unsigned int, for which the same holds.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20185