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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever confirmed|0                           |1
   Last reconfirmed|                            |2024-06-01
            Summary|False positive -fanalyzer   |False positive -fanalyzer
                   |use of uninitialized value  |use of uninitialized value
                   |due to std::string's        |due to not understand C++
                   |default constructor         |front-end's NRVO

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Further reduced:
```
struct g
{
  int t;
  g();
  g(const g&);
};

g foo1()
{
        return g{};
}
```

Reply via email to