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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|2012-05-26 00:00:00         |2021-7-23

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Self contained testcase without include:
struct d
{
  d(const char*);
};
class S
{
public:
    d getString( d const& ) const;
};
class C
{
public:
    C();
    S const& operator[]( d const& ) const;
};
void
f()
{
    static d const s(C()["a"].getString("b"));
}

Reply via email to