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++/87541] [7/8 Regression] ICE using a constant decl as an attribute alloc_size argument


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.

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