Commit 905af9e9 by Jason Merrill

re PR c++/15461 (ICE due to NRV and inlining)

        PR c++/15461
        * semantics.c (nullify_returns_r): Replace a DECL_STMT
        for the NRV with an INIT_EXPR.

From-SVN: r86552
parent ed89de94
// PR c++/15461
struct A {
int i;
};
inline A foo () {
int j = 1;
A a = { j };
return a;
}
A tv = foo();
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment