cp/decl.c not ISO C

Jim Wilson wilson@cygnus.com
Mon Oct 11 22:00:00 GMT 1999


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


More information about the Gcc-bugs mailing list