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

            Bug ID: 119238
           Summary: error: structured bindings only available with
                    ‘-std=c++17’ or ‘-std=gnu++17’
                    [-Werror=c++17-extensions]
           Product: gcc
           Version: 15.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: chenglulu at loongson dot cn
  Target Milestone: ---

Submitting r15-7938-g3c5ed996ac94a1 causes LoongArch gcc compilation to fail.
The error message is as follows:

../../gcc-trunk/gcc/config/loongarch/simd.md: In function ‘rtx_def*
gen_sdot_prodv2tiv4di(rtx, rtx, rtx, rtx)’:
../../gcc-trunk/gcc/config/loongarch/simd.md:812:8: error: structured bindings
only available with ‘-std=c++17’ or ‘-std=gnu++17’ [-Werror=c++17-extensions]
  812 |   auto [op0, op1, op2, op3] = operands;
      |        ^

Reply via email to