This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/83911] [6/7/8 Regression] ICE with target attribute on constructor in gimplify_expr at gimplify.c:11321
- From: "jason at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 18 Feb 2018 04:00:53 +0000
- Subject: [Bug c++/83911] [6/7/8 Regression] ICE with target attribute on constructor in gimplify_expr at gimplify.c:11321
- Auto-submitted: auto-generated
- References: <bug-83911-4@http.gcc.gnu.org/bugzilla/>
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.