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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|0                           |1
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2022-01-06
           Keywords|                            |needs-bisection

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Confirmed, was fixed in GCC 7.1.0. We should include a testcase to make sure it
does not regress again.

The testcase is something like:

// { dg-do compile }
// { dg-options "-O -std=c++11 -g -dA" }
// { dg-final { scan-assembler-not " DW_TAG_const_type" { xfail {
powerpc-ibm-aix* } } } }

int foo(){
        return 2;
}

int main(){
        int (&g)() = foo;
        return 1;
}

Reply via email to