re PR c++/35323 (ICE calling functions with fixed-point type parameter)
authorPaolo Carlini <pcarlini@suse.de>
Tue, 26 Feb 2008 10:09:43 +0000 (10:09 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Tue, 26 Feb 2008 10:09:43 +0000 (10:09 +0000)
/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

gcc/cp/ChangeLog
gcc/cp/name-lookup.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/lookup/crash7.C [new file with mode: 0644]

index 2738490e78ccce40f636f62d7d50da7a9c7f029b..aa4bf07f4ea343182c91119a39423e5008fa4b0b 100644 (file)
@@ -1,3 +1,8 @@
+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>
        
        * typeck.c (build_class_member_access_expr): Add appropriate
index 74a25bd2a3127f975dee5175021a65f1077367f4..9a95d150eec38a55088d9a649aaeee89ae75ab02 100644 (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>
 
@@ -4601,6 +4601,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))
index 62d37695baac819365b658b997b4311c306aee85..b627135f100c0faf7f1e7550cf993c0f1a884a52 100644 (file)
@@ -1,3 +1,8 @@
+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>
 
        * gcc.c-torture/execute/nest-align-1.c: Use the largest alignment.
diff --git a/gcc/testsuite/g++.dg/lookup/crash7.C b/gcc/testsuite/g++.dg/lookup/crash7.C
new file mode 100644 (file)
index 0000000..1117667
--- /dev/null
@@ -0,0 +1,9 @@
+// PR c++/35323
+// { dg-options "" }
+
+void foo(int);
+
+void bar()
+{
+  foo(1r); // { dg-error "unnamed-fixed" }
+}