This is the mail archive of the gcc-bugs@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]

[Bug c++/83911] [6/7/8 Regression] ICE with target attribute on constructor in gimplify_expr at gimplify.c:11321


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83911

--- Comment #2 from Jason Merrill <jason at gcc dot gnu.org> ---
Created attachment 43445
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=43445&action=edit
patch

The problem here is that we're substituting a dispatcher function for a
constructor, and the dispatcher function isn't marked as being a constructor. 
This seems like a general issue that the dispatcher lacks all language-specific
information that might be helpful, but in this specific instance it's easy
enough to copy DECL_CXX_CONSTRUCTOR_P.

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