This is the mail archive of the gcc-patches@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]

Re: [C++ PATCH] Friend class and DR 180


Gabriel Dos Reis wrote:

Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net> writes:

| pedwarn ("\
| friend declaration requires class-key, i.e. `friend class %T::%T'",

since we're using a C90 compiler to bootstrap cc1plus, this could
juste be written as
pedwarn ("friend declaration requires class-key, "
"i.e. `friend class %T::%T'",
TYPE_IDENTIFIER (TYPE_CONTEXT (type)),
TYPE_IDENTIFIER (type));

-- Gaby



OK, I'll do some more code tidy a bit.  Also I just noticed that the
extra TYPE_IDENTIFIER around TYPE_CONTEXT is redundant.

--Kriang




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