public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "cvs-commit at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c/113262] [11/12/13/14 Regression] ICE when using [[gnu::copy("")]] attribute Date: Tue, 09 Jan 2024 14:37:46 +0000 [thread overview] Message-ID: <bug-113262-4-gxeDci2546@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-113262-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113262 --- Comment #4 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Jakub Jelinek <jakub@gcc.gnu.org>: https://gcc.gnu.org/g:c9fc7f398e8b330ff12ec8a29bfa058b6daf6624 commit r14-7066-gc9fc7f398e8b330ff12ec8a29bfa058b6daf6624 Author: Jakub Jelinek <jakub@redhat.com> Date: Tue Jan 9 15:37:04 2024 +0100 c-family: copy attribute diagnostic fixes [PR113262] The copy attributes is allowed on decls as well as types and even has checks whether decl (set to *node) is DECL_P or TYPE_P, but for diagnostics unconditionally uses DECL_SOURCE_LOCATION (decl), which obviously only works if it applies to a decl. 2024-01-09 Jakub Jelinek <jakub@redhat.com> PR c/113262 * c-attribs.cc (handle_copy_attribute): Don't use DECL_SOURCE_LOCATION (decl) if decl is not DECL_P, use input_location instead. Formatting fixes. * gcc.dg/pr113262.c: New test.
next prev parent reply other threads:[~2024-01-09 14:37 UTC|newest] Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top 2024-01-08 4:20 [Bug c/113262] New: " 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 [this message] 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
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-113262-4-gxeDci2546@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).