diff options
author | kan <kan@FreeBSD.org> | 2003-11-07 02:43:04 +0000 |
---|---|---|
committer | kan <kan@FreeBSD.org> | 2003-11-07 02:43:04 +0000 |
commit | 1f79a7c5d02f19d3b84a4c966a52df954df090ec (patch) | |
tree | fe235f72e674c6a360d502ea52089d3d6f2035e2 /contrib/gcc/cp/init.c | |
parent | 81a2c9c441dc3231499d48ad9c0871b075ef6aa0 (diff) | |
parent | b09448931ae541a7a60fd1cf0ebac14b627fba69 (diff) | |
download | FreeBSD-src-1f79a7c5d02f19d3b84a4c966a52df954df090ec.zip FreeBSD-src-1f79a7c5d02f19d3b84a4c966a52df954df090ec.tar.gz |
This commit was generated by cvs2svn to compensate for changes in r122180,
which included commits to RCS files with non-trunk default branches.
Diffstat (limited to 'contrib/gcc/cp/init.c')
-rw-r--r-- | contrib/gcc/cp/init.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/contrib/gcc/cp/init.c b/contrib/gcc/cp/init.c index 83a8753..91ea10c 100644 --- a/contrib/gcc/cp/init.c +++ b/contrib/gcc/cp/init.c @@ -2517,6 +2517,10 @@ build_new_1 (exp) element. */ rval = convert (build_pointer_type (type), rval); + /* A new-expression is never an lvalue. */ + if (real_lvalue_p (rval)) + rval = build1 (NON_LVALUE_EXPR, TREE_TYPE (rval), rval); + return rval; } |