mirror of git://gcc.gnu.org/git/gcc.git
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
This commit is contained in:
parent
753fc83cd3
commit
fc36036b04
|
|
@ -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>
|
2010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
|
||||||
|
|
||||||
Fixed using the Objective-C 2.0 dot-syntax with class names.
|
Fixed using the Objective-C 2.0 dot-syntax with class names.
|
||||||
|
|
|
||||||
|
|
@ -11658,6 +11658,7 @@ tsubst_copy (tree t, tree args, tsubst_flags_t complain, tree in_decl)
|
||||||
case INTEGER_CST:
|
case INTEGER_CST:
|
||||||
case REAL_CST:
|
case REAL_CST:
|
||||||
case STRING_CST:
|
case STRING_CST:
|
||||||
|
case COMPLEX_CST:
|
||||||
{
|
{
|
||||||
/* Instantiate any typedefs in the type. */
|
/* Instantiate any typedefs in the type. */
|
||||||
tree type = tsubst (TREE_TYPE (t), args, complain, in_decl);
|
tree type = tsubst (TREE_TYPE (t), args, complain, in_decl);
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,8 @@
|
||||||
|
2010-11-05 Jason Merrill <jason@redhat.com>
|
||||||
|
|
||||||
|
PR c++/46304
|
||||||
|
* g++.dg/ext/complex6.C: New.
|
||||||
|
|
||||||
2010-11-04 Bud Davis <jimmied@smu.edu>
|
2010-11-04 Bud Davis <jimmied@smu.edu>
|
||||||
|
|
||||||
* gfortran.dg/intrinsic_numeric_arg.f: Add test to check
|
* gfortran.dg/intrinsic_numeric_arg.f: Add test to check
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,10 @@
|
||||||
|
// PR c++/46304
|
||||||
|
// { dg-options "" }
|
||||||
|
|
||||||
|
template<class T>
|
||||||
|
void f()
|
||||||
|
{
|
||||||
|
__complex double d = 1.0 + 2.0i;
|
||||||
|
}
|
||||||
|
|
||||||
|
template void f<int>();
|
||||||
Loading…
Reference in New Issue