[Bug c++/115061] New: Compiling gcc failed when using clang 16.0.6

deminhan at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon May 13 06:33:58 GMT 2024


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

            Bug ID: 115061
           Summary: Compiling gcc failed when using clang 16.0.6
           Product: gcc
           Version: 15.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: deminhan at gcc dot gnu.org
  Target Milestone: ---

../../../gcc/gcc/cp/semantics.cc:12917:14: error: expected unqualified-id
      size_t __array_rank = 0;
             ^
../../../gcc/gcc/cp/semantics.cc:12919:16: error: expected '('
        ++__array_rank;
                      ^
                      (
../../../gcc/gcc/cp/semantics.cc:12920:56: error: expected '('
      val = build_int_cst (size_type_node, __array_rank);
                                                       ^
                                                       (

id beginning with double underscore may be reserved.


More information about the Gcc-bugs mailing list