re PR c++/35323 (ICE calling functions with fixed-point type parameter)

/cp
2008-03-06  Paolo Carlini  <pcarlini@suse.de>

        PR c++/35323
        * name-lookup.c (arg_assoc_type): Handle FIXED_POINT_TYPE.

/testsuite
2008-03-06  Paolo Carlini  <pcarlini@suse.de>

        PR c++/35323
        * g++.dg/lookup/crash7.C: New.

/cp
2008-03-06  Paolo Carlini  <pcarlini@suse.de>

        PR c++/35333
        * error.c (dump_expr): Handle CONJ_EXPR.

/testsuite
2008-03-06  Paolo Carlini  <pcarlini@suse.de>

        PR c++/35333
        * g++.dg/other/error26.C: New.

/cp
2008-03-06  Paolo Carlini  <pcarlini@suse.de>

        PR c++/35338
        * error.c (dump_type): Handle FIXED_POINT_TYPE.
	(dump_expr): Handle FIXED_CST.

/testsuite
2008-03-06  Paolo Carlini  <pcarlini@suse.de>

        PR c++/35338
        * g++.dg/other/error25.C: New.

From-SVN: r132980
This commit is contained in:
Paolo Carlini 2008-03-06 17:50:54 +00:00 committed by Paolo Carlini
parent 4ef967c6eb
commit 8d1fc7a4a2
7 changed files with 56 additions and 1 deletions

View File

@ -1,3 +1,19 @@
2008-03-06 Paolo Carlini <pcarlini@suse.de>
PR c++/35323
* name-lookup.c (arg_assoc_type): Handle FIXED_POINT_TYPE.
2008-03-06 Paolo Carlini <pcarlini@suse.de>
PR c++/35333
* error.c (dump_expr): Handle CONJ_EXPR.
2008-03-06 Paolo Carlini <pcarlini@suse.de>
PR c++/35338
* error.c (dump_type): Handle FIXED_POINT_TYPE.
(dump_expr): Handle FIXED_CST.
2008-03-05 Release Manager
* GCC 4.3.0 released.

View File

@ -326,6 +326,7 @@ dump_type (tree t, int flags)
case BOOLEAN_TYPE:
case COMPLEX_TYPE:
case VECTOR_TYPE:
case FIXED_POINT_TYPE:
pp_type_specifier_seq (cxx_pp, t);
break;
@ -2079,7 +2080,9 @@ dump_expr (tree t, int flags)
case VEC_DELETE_EXPR:
case MODOP_EXPR:
case ABS_EXPR:
case CONJ_EXPR:
case VECTOR_CST:
case FIXED_CST:
pp_expression (cxx_pp, t);
break;

View File

@ -1,5 +1,5 @@
/* Definitions for C++ name lookup routines.
Copyright (C) 2003, 2004, 2005, 2006, 2007
Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008
Free Software Foundation, Inc.
Contributed by Gabriel Dos Reis <gdr@integrable-solutions.net>
@ -4594,6 +4594,7 @@ arg_assoc_type (struct arg_lookup *k, tree type)
case COMPLEX_TYPE:
case VECTOR_TYPE:
case BOOLEAN_TYPE:
case FIXED_POINT_TYPE:
return false;
case RECORD_TYPE:
if (TYPE_PTRMEMFUNC_P (type))

View File

@ -1,3 +1,18 @@
2008-03-06 Paolo Carlini <pcarlini@suse.de>
PR c++/35323
* g++.dg/lookup/crash7.C: New.
2008-03-06 Paolo Carlini <pcarlini@suse.de>
PR c++/35333
* g++.dg/other/error26.C: New.
2008-03-06 Paolo Carlini <pcarlini@suse.de>
PR c++/35338
* g++.dg/other/error25.C: New.
2008-03-05 Release Manager
* GCC 4.3.0 released.

View File

@ -0,0 +1,9 @@
// PR c++/35323
// { dg-options "" }
void foo(int);
void bar()
{
foo(1r); // { dg-error "unnamed-fixed" }
}

View File

@ -0,0 +1,5 @@
// PR c++/35338
// { dg-options "" }
int i = 0r; // { dg-error "unnamed-fixed" }
bool b = !0r; // { dg-error "0.0|argument" }

View File

@ -0,0 +1,6 @@
// PR c++/35333
void foo(__complex__ double x)
{
__builtin_conj(x)(); // { dg-error "~x" }
}