public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/113262] New: ICE when using [[gnu::copy("")]] attribute
@ 2024-01-08  4:20 gabravier at gmail dot com
  2024-01-08  4:37 ` [Bug c/113262] [11/12/13/14 Regression] " pinskia at gcc dot gnu.org
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: gabravier at gmail dot com @ 2024-01-08  4:20 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 113262
           Summary: ICE when using [[gnu::copy("")]] attribute
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gabravier at gmail dot com
  Target Milestone: ---

int[[gnu::copy("")]]a;

This crashes trunk GCC with the following error:

<source>:1:1: internal compiler error: tree check: expected tree that contains
'decl minimal' structure, have 'integer_type' in handle_copy_attribute, at
c-family/c-attribs.cc:3150
    1 | int[[gnu::copy("")]]a;
      | ^~~
0x232d4fc internal_error(char const*, ...)
        ???:0
0x87efb9 tree_contains_struct_check_failed(tree_node const*,
tree_node_structure_enum, char const*, int, char const*)
        ???:0
0x983af3 decl_attributes(tree_node**, tree_node*, int, tree_node*)
        ???:0
0x996328 finish_declspecs(c_declspecs*)
        ???:0
0xa1c31b c_parse_file()
        ???:0
0xa93da9 c_common_parse_file()
        ???:0
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.
Compiler returned: 1

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

end of thread, other threads:[~2024-06-20 13:28 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-08  4:20 [Bug c/113262] New: ICE when using [[gnu::copy("")]] attribute gabravier at gmail dot com
2024-01-08  4:37 ` [Bug c/113262] [11/12/13/14 Regression] " pinskia at gcc dot gnu.org
2024-01-08 20:55 ` jakub at gcc dot gnu.org
2024-01-08 21:22 ` jakub at gcc dot gnu.org
2024-01-09 14:37 ` cvs-commit at gcc dot gnu.org
2024-01-09 14:39 ` [Bug c/113262] [11/12/13 " jakub at gcc dot gnu.org
2024-03-02  0:38 ` cvs-commit at gcc dot gnu.org
2024-03-04 12:08 ` [Bug c/113262] [11/12 " jakub at gcc dot gnu.org
2024-06-11 10:36 ` cvs-commit at gcc dot gnu.org
2024-06-11 10:48 ` [Bug c/113262] [11 " jakub at gcc dot gnu.org
2024-06-20 13:21 ` cvs-commit at gcc dot gnu.org
2024-06-20 13:28 ` jakub 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).