From: Simon Marchi <simon.marchi@polymtl.ca>
To: Pedro Alves <palves@redhat.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [PATCH 2/3] enum_flags: Fix problems and add comprehensive unit tests
Date: Sat, 05 Nov 2016 03:05:00 -0000 [thread overview]
Message-ID: <5a7059d542949c17d191a9be8e51a1a6@polymtl.ca> (raw)
In-Reply-To: <1478229738-24469-3-git-send-email-palves@redhat.com>
On 2016-11-03 23:22, Pedro Alves wrote:
> +/* The (real) enum types used in CHECK_VALID. Their names match the
> + template parameter names of the templated defined by CHECK_VALID
> + just matching real vs template param type more obvious. They could
> + be named differently. */
I think something is not right with the second sentence.
> +/* Invalid since each type can be converted to the other. */
> +/* GCC 4.8 incorrectly fails to compile this test with:
> + error: operands to ?: have different types âenum_flags<RE>â and
> âREâ
> + Confirmed to compile/pass with gcc 4.9, 5.3 and clang 3.7.
> +*/
> +#if GCC_VERSION >= 4009
Does this #if enables testing with clang?
> +CHECK_VALID (false, void, true ? EF () : RE ())
> +CHECK_VALID (false, void, true ? RE () : EF ())
> +#endif
next prev parent reply other threads:[~2016-11-05 3:05 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-11-04 3:23 [PATCH 0/3] " Pedro Alves
2016-11-04 3:23 ` [PATCH 2/3] " Pedro Alves
2016-11-05 2:47 ` Simon Marchi
2016-11-05 3:05 ` Simon Marchi [this message]
2016-11-04 3:23 ` [PATCH 3/3] enum_flags: Fix ternary operator and remove implicit convertion to raw enum Pedro Alves
2016-11-04 3:23 ` [PATCH 1/3] enum_flags: Use C++11 std::underlying_type Pedro Alves
2016-11-05 2:28 ` Simon Marchi
2016-11-07 13:33 ` [PATCH 0/3] enum_flags: Fix problems and add comprehensive unit tests Luis Machado
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=5a7059d542949c17d191a9be8e51a1a6@polymtl.ca \
--to=simon.marchi@polymtl.ca \
--cc=gdb-patches@sourceware.org \
--cc=palves@redhat.com \
/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