[Bug c++/38489] [c++0x] ICE in digest_init_r, at cp/typeck2.c:821 on "auto t = 0r;" (fixed fp)

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Tue Dec 23 19:14:00 GMT 2008



------- Comment #2 from pinskia at gcc dot gnu dot org  2008-12-23 19:12 -------
I have a simple fix:
Index: cp-tree.h
===================================================================
--- cp-tree.h   (revision 142906)
+++ cp-tree.h   (working copy)
@@ -2701,7 +2701,8 @@ more_aggr_init_expr_args_p (const aggr_i
 #define ARITHMETIC_TYPE_P(TYPE) \
   (CP_INTEGRAL_TYPE_P (TYPE) \
    || TREE_CODE (TYPE) == REAL_TYPE \
-   || TREE_CODE (TYPE) == COMPLEX_TYPE)
+   || TREE_CODE (TYPE) == COMPLEX_TYPE \
+   || TREE_CODE (TYPE) == FIXED_POINT_TYPE)

 /* [basic.types]


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |pinskia at gcc dot gnu dot
                   |dot org                     |org
             Status|UNCONFIRMED                 |ASSIGNED
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2008-12-23 19:12:54
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38489



More information about the Gcc-bugs mailing list