2 ms·
The first two of these are weird cases for reading the standard and arguing with your compiler vendor because regardless of the legality they’re stupid code. Re
by plorkyeran 2y ago
The first two of these are weird cases for reading the standard and arguing with your compiler vendor because regardless of the legality they’re stupid code. Reference lifetime extension is useful for generic code where the function may return either a reference or a value, and is just bad code in nearly any other circumstance. The array initialization example is something that never actually worked, and a newer compiler version exposing some code that appeared to work but didn’t is sort of routine?