aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2010-11-05 01:56:58 -0400
committerJason Merrill <jason@gcc.gnu.org>2010-11-05 01:56:58 -0400
commitfc36036b04abe3c899d3bf4dba93e89e2a15dd50 (patch)
tree4cd8acca49ea9800e2c9570f6706326977800ffd /gcc/cp
parent753fc83cd3455fc7f0d29d4583882d283aebfc50 (diff)
downloadgcc-fc36036b04abe3c899d3bf4dba93e89e2a15dd50.zip
gcc-fc36036b04abe3c899d3bf4dba93e89e2a15dd50.tar.gz
gcc-fc36036b04abe3c899d3bf4dba93e89e2a15dd50.tar.bz2
re PR c++/46304 (g++ crashes with ICE in bitmap_first_set_bit, at bitmap.c:770)
PR c++/46304 * pt.c (tsubst_copy): Handle COMPLEX_CST. From-SVN: r166350
Diffstat (limited to 'gcc/cp')
-rw-r--r--gcc/cp/ChangeLog5
-rw-r--r--gcc/cp/pt.c1
2 files changed, 6 insertions, 0 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index b1c9e01..e884898 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,3 +1,8 @@
+2010-11-05 Jason Merrill <jason@redhat.com>
+
+ PR c++/46304
+ * pt.c (tsubst_copy): Handle COMPLEX_CST.
+
2010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
Fixed using the Objective-C 2.0 dot-syntax with class names.
diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c
index ca2baeb..ed04b2b 100644
--- a/gcc/cp/pt.c
+++ b/gcc/cp/pt.c
@@ -11658,6 +11658,7 @@ tsubst_copy (tree t, tree args, tsubst_flags_t complain, tree in_decl)
case INTEGER_CST:
case REAL_CST:
case STRING_CST:
+ case COMPLEX_CST:
{
/* Instantiate any typedefs in the type. */
tree type = tsubst (TREE_TYPE (t), args, complain, in_decl);