[Bug c++/105809] [10/11/12/13 Regression] GCC ICE when deal with __PRETTY_FUNCTION__ inside macro

mpolacek at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Jun 1 21:32:04 GMT 2022


Marek Polacek <mpolacek at gcc dot gnu.org> changed:

           What    |Removed                     |Added
   Target Milestone|---                         |10.4
                 CC|                            |mpolacek at gcc dot gnu.org
     Ever confirmed|0                           |1
            Summary|GCC ICE when deal with      |[10/11/12/13 Regression]
                   |__PRETTY_FUNCTION__ inside  |GCC ICE when deal with
                   |macro                       |__PRETTY_FUNCTION__ inside
                   |                            |macro
   Last reconfirmed|                            |2022-06-01
             Status|UNCONFIRMED                 |NEW

--- Comment #2 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
The ICE started with

commit 12659e10c78200717fc82ed77892de5059fa44b5
Author: Jason Merrill <jason@redhat.com>
Date:   Tue Aug 29 15:40:08 2017 -0400

    Instantiate default arguments/member initializers once.

            * init.c (get_nsdmi): Remember NSDMI instantiations.
            * parser.c (inject_this_parameter): Be more picky about
            * pt.c (tsubst_copy): Simplify 'this' handling.
            (tsubst_default_argument): Remember default argument
            instantiations.  Take parameter number.
            (tsubst_default_arguments): Pass it.
            * call.c (convert_default_arg): Likewise.

    From-SVN: r251422

which is GCC 8.

More information about the Gcc-bugs mailing list