aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2011-05-20 16:40:06 -0400
committerJason Merrill <jason@gcc.gnu.org>2011-05-20 16:40:06 -0400
commitfa07d25b40bce1e4959a40a2753f1911e2b06431 (patch)
tree9a25ee01eb25c223877b1f1d1eb070854a7fd081 /gcc
parent5e3f417f3efce4a89d7330eed7f4dba99bcbe3bc (diff)
downloadgcc-fa07d25b40bce1e4959a40a2753f1911e2b06431.zip
gcc-fa07d25b40bce1e4959a40a2753f1911e2b06431.tar.gz
gcc-fa07d25b40bce1e4959a40a2753f1911e2b06431.tar.bz2
* tree.c (stabilize_expr): Fix typo.
From-SVN: r173982
Diffstat (limited to 'gcc')
-rw-r--r--gcc/cp/ChangeLog3
-rw-r--r--gcc/cp/tree.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index 4ec6578..5aff296 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,5 +1,8 @@
2011-05-20 Jason Merrill <jason@redhat.com>
+ PR c++/48873
+ * tree.c (stabilize_expr): Fix typo.
+
DR 1073
PR c++/49082
* typeck.c (comp_except_specs): noexcept(false) is not compatible
diff --git a/gcc/cp/tree.c b/gcc/cp/tree.c
index 6b3680e..c93110b 100644
--- a/gcc/cp/tree.c
+++ b/gcc/cp/tree.c
@@ -3136,7 +3136,7 @@ stabilize_expr (tree exp, tree* initp)
/* There are no expressions with REFERENCE_TYPE, but there can be call
arguments with such a type; just treat it as a pointer. */
else if (TREE_CODE (TREE_TYPE (exp)) == REFERENCE_TYPE
- || SCALAR_TYPE_P (exp)
+ || SCALAR_TYPE_P (TREE_TYPE (exp))
|| !lvalue_or_rvalue_with_address_p (exp))
{
init_expr = get_target_expr (exp);