This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Fix part of pr25505
Josh Conner wrote:
> I'd be glad to look into fixing the tree-nrv code in question, but I
> would need some help understanding how to get something other than a
> VAR_DECL on the LHS in order to actually verify behavior. Anyone?
Found one...
typedef struct { int x; void *y; } S;
S fn1 (void);
void fn2 (S *);
void test (void)
{
S result[10];
result[5] = fn1();
fn2 (&result[5]);
}
- Josh