[Bug c++/86610] [8/9 Regression] non-const operator erroneously called in lambda in templated function

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Jul 20 17:39:00 GMT 2018


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

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
      Known to work|                            |7.3.0
           Keywords|                            |rejects-valid
   Last reconfirmed|                            |2018-07-20
                 CC|                            |nathan at gcc dot gnu.org
     Ever confirmed|0                           |1
            Summary|non-const operator          |[8/9 Regression] non-const
                   |erroneously called in       |operator erroneously called
                   |lambda in templated         |in lambda in templated
                   |function                    |function
      Known to fail|                            |8.1.0, 9.0

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Seems to have started with r255605

    [PR C++/15272] lookups with ambiguating dependent base

    https://gcc.gnu.org/ml/gcc-patches/2017-12/msg00766.html
            PR c++/15272
            * pt.c (tsubst_baselink): Don't repeat the lookup for
            non-dependent baselinks.

            PR c++/15272
            * g++.dg/template/pr71826.C: Adjust for 15272 fix.


More information about the Gcc-bugs mailing list