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]

cp/decl.c not ISO C


It has

#define current_binding_level			\
  (current_function				\
   ? cp_function_chain->bindings   		\
   : scope_chain->bindings)

and then later

  current_binding_level = newlevel;

An ISO C compiler (the SGI C compiler) complains that the left hand side is
not an lvalue.

If we've adopted the convention that the C++ front end is now written in
GNU C instead of ISO C then this is OK, but I thought I should mention it
in case it was accidental.

Jim

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