Bug ID: 77700
           Summary: suspicios code in cp/parser.c
           Product: gcc
           Version: 7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot
          Reporter: bernd.edlinger at hotmail dot de
  Target Milestone: ---


this is the next one, the line info is off by one, but it is nevertheless
a real bug:

../../gcc-trunk/gcc/cp/parser.c: In function 'tree_node*
../../gcc-trunk/gcc/cp/parser.c:23137:35: error: using integer constants in
boolean context [-Werror=int-in-bool-context]

  cp_parser_nested_name_specifier_opt (parser,

static tree cp_parser_nested_name_specifier_opt
  (cp_parser *, bool, bool, bool, bool);

enum tag_types {
  none_type = 0, /* Not a tag type.  */
  record_type,   /* "struct" types.  */
  class_type,    /* "class" types.  */
  union_type,    /* "union" types.  */
  enum_type,     /* "enum" types.  */
  typename_type, /* "typename" types.  */
  scope_type     /* namespace or tagged type name followed by :: */

Reply via email to