This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/38489] [c++0x] ICE in digest_init_r, at cp/typeck2.c:821 on "auto t = 0r;" (fixed fp)
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 23 Dec 2008 19:12:55 -0000
- Subject: [Bug c++/38489] [c++0x] ICE in digest_init_r, at cp/typeck2.c:821 on "auto t = 0r;" (fixed fp)
- References: <bug-38489-16746@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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