>>100177653auto& b = ...; will give you the same address :)returning reference to stack variable is undefined variable so dont do that because the value might get overwritten!!
auto& b = ...;
>>100177743wtf i used the wrong screencap for the thread its so over... but why doesnt the compiler yell at me?
>>100177808try with -fanalyzerfor more complex cases that can't be statically checked consider address sanitizer which checks things at runtime!hope this helps!!
>>100177808>but why doesnt the compiler yell at me?that's the job of static analysis tool