[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#179363: gcc-3.2-doc: misplaced paragraph in Constructing Calls node



Package: gcc-3.2-doc
Version: 1:3.2.2-0pre7
Severity: minor

The node (gcc-3.2.info.gz)"Constructing Calls", in "C Extensions",
has this paragraph at the end:

     The reason for using names that start with underscores for the local
  variables is to avoid conflicts with variable names that occur within
  the expressions that are substituted for `a' and `b'.  Eventually we
  hope to design a new form of declaration syntax that allows you to
  declare variables whose scopes start only after their initializers;
  this will be a more reliable way to prevent such conflicts.

This does not make sense in that node, which doesn't describe the
use of any local variables, with or without underscores.  The paragraph
seems to belong somewhere in the next node, "Typeof", which contains
this example:

     #define max(a,b) \
       ({ typeof (a) _a = (a); \
           typeof (b) _b = (b); \
         _a > _b ? _a : _b; })

Richard Braakman




Reply to: