/cp
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 26 Feb 2008 10:09:43 +0000 (10:09 +0000)
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 26 Feb 2008 10:09:43 +0000 (10:09 +0000)
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@132669 138bc75d-0d04-0410-961f-82ee72b054a4

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

index 2738490..aa4bf07 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 74a25bd..9a95d15 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 62d3769..b627135 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" }
+}