Commit 50a70b6b by Paolo Carlini Committed by Paolo Carlini

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

/cp
2008-02-26  Paolo Carlini  <pcarlini@suse.de>

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

/testsuite
2008-02-26  Paolo Carlini  <pcarlini@suse.de>

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

From-SVN: r132669
parent 0dc15f28
2008-02-26 Paolo Carlini <pcarlini@suse.de>
PR c++/35323
* name-lookup.c (arg_assoc_type): Handle FIXED_POINT_TYPE.
2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org> 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
* typeck.c (build_class_member_access_expr): Add appropriate * typeck.c (build_class_member_access_expr): Add appropriate
......
/* Definitions for C++ name lookup routines. /* 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. Free Software Foundation, Inc.
Contributed by Gabriel Dos Reis <gdr@integrable-solutions.net> Contributed by Gabriel Dos Reis <gdr@integrable-solutions.net>
...@@ -4601,6 +4601,7 @@ arg_assoc_type (struct arg_lookup *k, tree type) ...@@ -4601,6 +4601,7 @@ arg_assoc_type (struct arg_lookup *k, tree type)
case COMPLEX_TYPE: case COMPLEX_TYPE:
case VECTOR_TYPE: case VECTOR_TYPE:
case BOOLEAN_TYPE: case BOOLEAN_TYPE:
case FIXED_POINT_TYPE:
return false; return false;
case RECORD_TYPE: case RECORD_TYPE:
if (TYPE_PTRMEMFUNC_P (type)) if (TYPE_PTRMEMFUNC_P (type))
......
2008-02-26 Paolo Carlini <pcarlini@suse.de>
PR c++/35323
* g++.dg/lookup/crash7.C: New.
2008-02-26 Kaz Kojima <kkojima@gcc.gnu.org> 2008-02-26 Kaz Kojima <kkojima@gcc.gnu.org>
* gcc.c-torture/execute/nest-align-1.c: Use the largest alignment. * gcc.c-torture/execute/nest-align-1.c: Use the largest alignment.
// PR c++/35323
// { dg-options "" }
void foo(int);
void bar()
{
foo(1r); // { dg-error "unnamed-fixed" }
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment