From: Tom Tromey <tom@tromey.com>
To: Tom de Vries via Gdb-patches <gdb-patches@sourceware.org>
Subject: Re: [PATCH][gdb/testsuite] Fix gdb.cp/align.exp with gcc 12.1 / 11.3
Date: Mon, 02 May 2022 10:43:59 -0600 [thread overview]
Message-ID: <87k0b3khps.fsf@tromey.com> (raw)
In-Reply-To: <20220502150847.GA12665@delia.home> (Tom de Vries via Gdb-patches's message of "Mon, 2 May 2022 17:08:48 +0200")
>>>>> "Tom" == Tom de Vries via Gdb-patches <gdb-patches@sourceware.org> writes:
Tom> Hi,
Tom> Starting with gcc 12.1 / gcc 11.3, for test-case gdb.cp/align.exp we run into:
Tom> ...
Tom> align.cc:29:23: error: invalid application of 'alignof' to a void type^M
Tom> 29 | unsigned a_void = alignof (void);^M
Tom> | ^~~~~~~~~~~~~~^M
Tom> ...
Tom> Fix this by using __alignof__ instead.
Tom> Tested on x86_64-linux, with gcc 7.5.0, gcc 12.1 and clang 12.0.1.
Tom> Any comments?
This seems fine to me.
Tom
prev parent reply other threads:[~2022-05-02 16:44 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-05-02 15:08 Tom de Vries
2022-05-02 16:43 ` Tom Tromey [this message]
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=87k0b3khps.fsf@tromey.com \
--to=tom@tromey.com \
--cc=gdb-patches@sourceware.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: link
Be 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).