public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* MEMBER_TYPE and CV qualifiers
@ 2005-07-17 15:38 Nathan Sidwell
  2005-07-17 20:07 ` Mark Mitchell
  0 siblings, 1 reply; 11+ messages in thread
From: Nathan Sidwell @ 2005-07-17 15:38 UTC (permalink / raw)
  To: gcc mailing list; +Cc: Jason Merrill, Mark Mitchell

I'm looking at holding the CV qualifiers of a member function on the MEMBER_TYPE
node itself, rather than only on the this pointer argument.

this brings up a design issue of what TYPE_MAIN_VARIANT should be of a cv
qualified member function.  Should it be itself (thereby breaking the invariant
that T_M_V is always unqualified), or should it be the cv unqualified member
function?  Our current behaviour is such that T_M_V of a member function is a
self reference.

Clearly cp_build_qualified_type should continue to reject cv qualifying a
MEMBER_TYPE.  We'd need a new cp_build_qualified_member_type to do that, so we
can correctly deal with the syntactic differences.

thoughts?

nathan
-- 
Nathan Sidwell    ::   http://www.codesourcery.com   ::     CodeSourcery LLC
nathan@codesourcery.com    ::     http://www.planetfall.pwp.blueyonder.co.uk

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2005-07-19 20:50 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-07-17 15:38 MEMBER_TYPE and CV qualifiers Nathan Sidwell
2005-07-17 20:07 ` Mark Mitchell
2005-07-18 10:15   ` Giovanni Bajo
2005-07-18 14:25     ` Mark Mitchell
2005-07-18 15:30       ` Gabriel Dos Reis
2005-07-19 18:44     ` Jason Merrill
2005-07-19 18:48       ` Mark Mitchell
2005-07-19 19:47         ` Gabriel Dos Reis
2005-07-19 20:14           ` Mark Mitchell
2005-07-19 20:35             ` Gabriel Dos Reis
2005-07-19 20:50               ` Mark Mitchell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).