This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/87541] [7/8 Regression] ICE using a constant decl as an attribute alloc_size argument
- From: "msebor at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 15 Nov 2018 23:07:58 +0000
- Subject: [Bug c++/87541] [7/8 Regression] ICE using a constant decl as an attribute alloc_size argument
- Auto-submitted: auto-generated
- References: <bug-87541-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87541
Martin Sebor <msebor at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Known to work| |6.3.0, 9.0
Summary|[7/8/9 Regression] ICE |[7/8 Regression] ICE using
|using a constant decl as an |a constant decl as an
|attribute alloc_size |attribute alloc_size
|argument |argument
Known to fail| |8.2.0
--- Comment #4 from Martin Sebor <msebor at gcc dot gnu.org> ---
Fixed for GCC 9 in r266195. The ICE is still present in GCC 8 but I can't
reproduce it in GCC 7. Since the patch also introduces a warning for (invalid)
code that was previously silently accepted (pr87533) I'm not sure it should be
backported to GCC 8.