This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: C++ PATCH for c++/86063, ICE with attribute with pack expansion
- From: Jason Merrill <jason at redhat dot com>
- To: Marek Polacek <polacek at redhat dot com>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Mon, 11 Jun 2018 15:00:04 -0400
- Subject: Re: C++ PATCH for c++/86063, ICE with attribute with pack expansion
- References: <20180606211835.GC28085@redhat.com>
On Wed, Jun 6, 2018 at 5:18 PM, Marek Polacek <polacek@redhat.com> wrote:
> We crash on this testcase containing a bogus attribute, because
> cp_check_const_attributes accessed TREE_VALUE of a tree that happened to be
> expr_pack_expansion. Since here we're merely trying to evaluate constexpr
> arguments, I thought we could skip such bogus arguments.
Hmm, attributes should always be a TREE_LIST, lots of places assume
that. Why isn't the pack expansion wrapped in a TREE_LIST?
Jason