[Bug c++/20185] assignment error in inline function

dirk at cle-mens dot de gcc-bugzilla@gcc.gnu.org
Thu Feb 24 16:24:00 GMT 2005


------- Additional Comments From dirk at cle-mens dot de  2005-02-24 13:56 -------
(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.

And please see bug #20189: same error with a C example.

-------
Another question again: I marked this bug 'reopen' while I'm posting this. Is
this the
correct way?


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |UNCONFIRMED
         Resolution|INVALID                     |


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



More information about the Gcc-bugs mailing list