* mangle.c (hash_type): val is the TREE_LIST itself, not a pointer
to it.
* g++.dg/opt/operator1.C: New test.
From-SVN: r68364
+2003-06-23 Jakub Jelinek <jakub@redhat.com>
+
+ * mangle.c (hash_type): val is the TREE_LIST itself, not a pointer
+ to it.
+
2003-06-21 Gabriel Dos Reis <gdr@integrable-solutions.net>
PR c++/10784
static hashval_t
hash_type (const void *val)
{
- return htab_hash_pointer (TREE_PURPOSE (*((tree *) val)));
+ return htab_hash_pointer (TREE_PURPOSE ((tree) val));
}
/* Compare VAL1 (a node in the table) with VAL2 (a TYPE). */
+2003-06-23 Jakub Jelinek <jakub@redhat.com>
+
+ * g++.dg/opt/operator1.C: New test.
+
2003-06-22 Roger Sayle <roger@eyesopen.com>
* gcc.c-torture/execute/string-opt-16.c: New test case.
--- /dev/null
+// Tests whether g++ can handle large number of operators
+// { dg-do compile }
+
+#define OP0(n) struct I##n { int i; }; operator I##n ();
+#define OP1(n) OP0(n)
+#define OP2(n) OP1(n##0) OP1(n##1) OP1(n##2) OP1(n##3) OP1(n##4)
+#define OP3(n) OP2(n##0) OP2(n##1) OP2(n##2) OP2(n##3) OP2(n##4)
+struct S {
+ OP3(0) OP3(1) OP3(2) OP3(3) OP3(4) OP3(5)
+};