On Thu, 21 Dec 2023, David Malcolm via Gcc wrote:
On Wed, 2023-12-20 at 11:16 -0800, Eric Batchelor wrote:
Hello, I unintentionally stumbled upon some strange behaviour that
occurred due to a typo.
I reproduced the behaviour where an object (std::string in my case)
can
be passed to a function b
On Wed, 2023-12-20 at 11:16 -0800, Eric Batchelor wrote:
> Hello, I unintentionally stumbled upon some strange behaviour that
> occurred due to a typo.
> I reproduced the behaviour where an object (std::string in my case)
> can
> be passed to a function by reference, uninitialized, WITHOUT a
> co
Hello, I unintentionally stumbled upon some strange behaviour that
occurred due to a typo.
I reproduced the behaviour where an object (std::string in my case) can
be passed to a function by reference, uninitialized, WITHOUT a compiler
warning.
Changing the code to pass the object by value DOES