public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/115061] New: Compiling gcc failed when using clang 16.0.6
@ 2024-05-13  6:33 deminhan at gcc dot gnu.org
  2024-05-13  6:39 ` [Bug c++/115061] " kmatsui at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: deminhan at gcc dot gnu.org @ 2024-05-13  6:33 UTC (permalink / raw)
  To: gcc-bugs

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.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug c++/115061] Compiling gcc failed when using clang 16.0.6
  2024-05-13  6:33 [Bug c++/115061] New: Compiling gcc failed when using clang 16.0.6 deminhan at gcc dot gnu.org
@ 2024-05-13  6:39 ` kmatsui at gcc dot gnu.org
  2024-05-13 17:19 ` cvs-commit at gcc dot gnu.org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: kmatsui at gcc dot gnu.org @ 2024-05-13  6:39 UTC (permalink / raw)
  To: gcc-bugs

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

Ken Matsui <kmatsui at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|unassigned at gcc dot gnu.org      |kmatsui at gcc dot gnu.org
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2024-05-13
     Ever confirmed|0                           |1

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug c++/115061] Compiling gcc failed when using clang 16.0.6
  2024-05-13  6:33 [Bug c++/115061] New: Compiling gcc failed when using clang 16.0.6 deminhan at gcc dot gnu.org
  2024-05-13  6:39 ` [Bug c++/115061] " kmatsui at gcc dot gnu.org
@ 2024-05-13 17:19 ` cvs-commit at gcc dot gnu.org
  2024-05-13 17:40 ` kmatsui at gcc dot gnu.org
  2024-05-13 19:03 ` ppalka at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2024-05-13 17:19 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Ken Matsui <kmatsui@gcc.gnu.org>:

https://gcc.gnu.org/g:30ff6c55ba0f2262cf292c90d7b9d771005305f0

commit r15-437-g30ff6c55ba0f2262cf292c90d7b9d771005305f0
Author: Ken Matsui <kmatsui@gcc.gnu.org>
Date:   Sun May 12 23:43:55 2024 -0700

    c++: Avoid using __array_rank as a variable name [PR115061]

    This patch fixes a compilation error when building GCC using Clang.
    Since __array_rank is used as a built-in trait name, use rank instead.

            PR c++/115061

    gcc/cp/ChangeLog:

            * semantics.cc (finish_trait_expr): Use rank instead of
            __array_rank.

    Signed-off-by: Ken Matsui <kmatsui@gcc.gnu.org>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug c++/115061] Compiling gcc failed when using clang 16.0.6
  2024-05-13  6:33 [Bug c++/115061] New: Compiling gcc failed when using clang 16.0.6 deminhan at gcc dot gnu.org
  2024-05-13  6:39 ` [Bug c++/115061] " kmatsui at gcc dot gnu.org
  2024-05-13 17:19 ` cvs-commit at gcc dot gnu.org
@ 2024-05-13 17:40 ` kmatsui at gcc dot gnu.org
  2024-05-13 19:03 ` ppalka at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: kmatsui at gcc dot gnu.org @ 2024-05-13 17:40 UTC (permalink / raw)
  To: gcc-bugs

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

Ken Matsui <kmatsui at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #2 from Ken Matsui <kmatsui at gcc dot gnu.org> ---
Thank you for reporting this, Demin.  I fixed this problem in
https://gcc.gnu.org/g:30ff6c55ba0f2262cf292c90d7b9d771005305f0.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug c++/115061] Compiling gcc failed when using clang 16.0.6
  2024-05-13  6:33 [Bug c++/115061] New: Compiling gcc failed when using clang 16.0.6 deminhan at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2024-05-13 17:40 ` kmatsui at gcc dot gnu.org
@ 2024-05-13 19:03 ` ppalka at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: ppalka at gcc dot gnu.org @ 2024-05-13 19:03 UTC (permalink / raw)
  To: gcc-bugs

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

Patrick Palka <ppalka at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |15.0
                 CC|                            |ppalka at gcc dot gnu.org

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2024-05-13 19:03 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-05-13  6:33 [Bug c++/115061] New: Compiling gcc failed when using clang 16.0.6 deminhan at gcc dot gnu.org
2024-05-13  6:39 ` [Bug c++/115061] " kmatsui at gcc dot gnu.org
2024-05-13 17:19 ` cvs-commit at gcc dot gnu.org
2024-05-13 17:40 ` kmatsui at gcc dot gnu.org
2024-05-13 19:03 ` ppalka at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).