This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/46824] chromium-compile failed because error: no match for âoperator*â in


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

--- Comment #8 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-03-10 22:26:42 UTC ---
(In reply to comment #7)
> It doesn't need to be a pointer to non-class type; a pointer to class is itself
> a non-class type.

Indeed. And the example compiles fine if the type is complete.  I can't find
any wording that says why converting to Incomplete* should not be allowed when
converting to Complete* is ok.  I wondered if DR416 is relevant, but I don't
think it applies, as T1 is Ptr here, which is complete.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]