https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98128

            Bug ID: 98128
           Summary: [11 Regression] Bootstrap failed on 32-bit hosts
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: bootstrap
          Assignee: unassigned at gcc dot gnu.org
          Reporter: hjl.tools at gmail dot com
                CC: jakub at redhat dot com, jason at redhat dot com
  Target Milestone: ---

On Linux/x86, r11-5702 failed to bootstrap:

../../src-master/gcc/cp/parser.c: In function ??void
cp_parser_late_parsing_default_args(cp_parser*, tree)??:
../../src-master/gcc/cp/parser.c:30592:28: error: ambiguous overload for
??operator[]?? (operand types are ??releasing_vec?? and ??int??)
30592 |       tree parmdecl = parms[i];
      |                            ^
../../src-master/gcc/cp/parser.c:30592:28: note: candidate:
??operator[](releasing_vec::vec_t* {aka vec<tree_node*, va_gc>*}, int)??
(built-in)
In file included from ../../src-master/gcc/cp/parser.c:25:
../../src-master/gcc/cp/cp-tree.h:965:9: note: candidate: ??tree_node*&
releasing_vec::operator[](unsigned int) const??
  965 |   tree& operator[] (unsigned i) const { return (*v)[i]; }
      |         ^~~~~~~~
In file included from ../../src-master/gcc/c-family/c-common.h:26,
                 from ../../src-master/gcc/cp/cp-tree.h:40,
                 from ../../src-master/gcc/cp/parser.c:25:
../../src-master/gcc/cp/parser.c:30621:24: error: ambiguous overload for
??operator[]?? (operand types are ??releasing_vec?? and ??int??)
30621 |       DECL_CHAIN (parms[i]) = parm;
      |                        ^
../../src-master/gcc/tree.h:286:26: note: in definition of macro
??CONTAINS_STRUCT_CHECK??
  286 | (contains_struct_check ((T), (STRUCT), __FILE__, __LINE__,
__FUNCTION__))
      |                          ^
../../src-master/gcc/tree.h:2424:27: note: in expansion of macro ??TREE_CHAIN??
 2424 | #define DECL_CHAIN(NODE) (TREE_CHAIN (DECL_MINIMAL_CHECK (NODE)))
      |                           ^~~~~~~~~~
../../src-master/gcc/tree.h:431:33: note: in expansion of macro
??CONTAINS_STRUCT_CHECK??
  431 | #define DECL_MINIMAL_CHECK(T)   CONTAINS_STRUCT_CHECK (T,
TS_DECL_MINIMAL)
      |                                 ^~~~~~~~~~~~~~~~~~~~~
../../src-master/gcc/tree.h:2424:39: note: in expansion of macro
??DECL_MINIMAL_CHECK??
 2424 | #define DECL_CHAIN(NODE) (TREE_CHAIN (DECL_MINIMAL_CHECK (NODE)))
      |                                       ^~~~~~~~~~~~~~~~~~
../../src-master/gcc/cp/parser.c:30621:7: note: in expansion of macro
??DECL_CHAIN??
30621 |       DECL_CHAIN (parms[i]) = parm;
      |       ^~~~~~~~~~
../../src-master/gcc/cp/parser.c:30621:24: note: candidate:
??operator[](releasing_vec::vec_t* {aka vec<tree_node*, va_gc>*}, int)??
(built-in)
30621 |       DECL_CHAIN (parms[i]) = parm;
      |                        ^
../../src-master/gcc/tree.h:286:26: note: in definition of macro
??CONTAINS_STRUCT_CHECK??

r11-5693 is OK.

Reply via email to