summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>2008-02-26 10:09:43 +0000
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>2008-02-26 10:09:43 +0000
commit2596ba6959979b79539eb552cd5ae38c3c0f9974 (patch)
treee77b6c85e4bfee3daf5365a4f753345bdf343be1
parent7aa2649fd2625060818254a3216002f7354036c4 (diff)
downloadgcc-2596ba6959979b79539eb552cd5ae38c3c0f9974.tar.gz
/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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@132669 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/cp/ChangeLog5
-rw-r--r--gcc/cp/name-lookup.c3
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/g++.dg/lookup/crash7.C9
4 files changed, 21 insertions, 1 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index 2738490e78c..aa4bf07f4ea 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -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
diff --git a/gcc/cp/name-lookup.c b/gcc/cp/name-lookup.c
index 74a25bd2a31..9a95d150eec 100644
--- a/gcc/cp/name-lookup.c
+++ b/gcc/cp/name-lookup.c
@@ -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))
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 62d37695baa..b627135f100 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -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
index 00000000000..11176677cb8
--- /dev/null
+++ b/gcc/testsuite/g++.dg/lookup/crash7.C
@@ -0,0 +1,9 @@
+// PR c++/35323
+// { dg-options "" }
+
+void foo(int);
+
+void bar()
+{
+ foo(1r); // { dg-error "unnamed-fixed" }
+}