* tree.c (stabilize_expr): Fix typo.
authorJason Merrill <jason@redhat.com>
Fri, 20 May 2011 20:40:06 +0000 (16:40 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Fri, 20 May 2011 20:40:06 +0000 (16:40 -0400)
From-SVN: r173982

gcc/cp/ChangeLog
gcc/cp/tree.c

index 4ec657812e1841fb47456237039e85cc984347cf..5aff2967a5bdb69a38f3741b9b7d0d2e3cde28a9 100644 (file)
@@ -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
index 6b3680e80991540b6b2e7eeb29a00cdf52df60e5..c93110b90627580d81907500212af73d918b6209 100644 (file)
@@ -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);