This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: C++ PATCH for c++/86063, ICE with attribute with pack expansion


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]