This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
3.2 PATCH: Implicit typenames
- From: Gabriel Dos Reis <gdr at codesourcery dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: 23 Mar 2002 04:19:12 +0100
- Subject: 3.2 PATCH: Implicit typenames
- Organization: CodeSourcery, LLC
I was tired of messages like
typename.C:5: warning: `typename Y<T>::A' is implicitly a typename
Now we emit
typename.C:5: warning: `Y<T>::A' is implicitly a typename
Bootstrapped and tested on an i686-pc-linux-gnu.
-- Gaby
Index: cp/ChangeLog
===================================================================
RCS file: /cvs/gcc/egcs/gcc/cp/ChangeLog,v
retrieving revision 1.2731
diff -p -r1.2731 ChangeLog
*** ChangeLog 2002/03/23 01:24:17 1.2731
--- ChangeLog 2002/03/23 03:16:48
***************
*** 1,3 ****
--- 1,7 ----
+ 2002-03-23 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
+
+ * error.c (dump_type): Be careful about implicit typenames.
+
2002-03-21 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
PR C++/3656
Index: cp/error.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/cp/error.c,v
retrieving revision 1.172
diff -p -r1.172 error.c
*** error.c 2002/03/23 01:10:55 1.172
--- error.c 2002/03/23 03:16:49
*************** dump_type (t, flags)
*** 459,465 ****
break;
}
case TYPENAME_TYPE:
! output_add_string (scratch_buffer, "typename ");
dump_typename (t, flags);
break;
--- 459,466 ----
break;
}
case TYPENAME_TYPE:
! if (!IMPLICIT_TYPENAME_P (t))
! output_add_string (scratch_buffer, "typename ");
dump_typename (t, flags);
break;