public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [C++ Patch] PR 32112
@ 2007-08-11  2:14 Paolo Carlini
  2007-08-17 19:57 ` Jason Merrill
  0 siblings, 1 reply; 2+ messages in thread
From: Paolo Carlini @ 2007-08-11  2:14 UTC (permalink / raw)
  To: gcc-patches

[-- Attachment #1: Type: text/plain, Size: 84 bytes --]

Hi,

tested x86_64-linux. Ok for mainline (4_2 and 4_1)?

Paolo.

/////////////////

[-- Attachment #2: CL_32112 --]
[-- Type: text/plain, Size: 288 bytes --]

/cp
2007-08-11  Paolo Carlini  <pcarlini@suse.de>

	PR c++/32112
	* error.c (dump_decl): Deal with UNBOUND_CLASS_TEMPLATE.
	* cxx-pretty-print.c (pp_cxx_unqualified_id): Likewise.

/testsuite
2007-08-11  Paolo Carlini  <pcarlini@suse.de>

	PR c++/32112
	* g++.dg/template/error26.C: New.

[-- Attachment #3: patch_32112 --]
[-- Type: text/plain, Size: 1285 bytes --]

Index: testsuite/g++.dg/template/error26.C
===================================================================
*** testsuite/g++.dg/template/error26.C	(revision 0)
--- testsuite/g++.dg/template/error26.C	(revision 0)
***************
*** 0 ****
--- 1,5 ----
+ // PR c++/32112
+ 
+ template<typename> struct A;
+ 
+ template<typename T> void foo (A<&T::template i>); // { dg-error "T::template i|mismatch|& T::i" }
Index: cp/error.c
===================================================================
*** cp/error.c	(revision 127335)
--- cp/error.c	(working copy)
*************** dump_decl (tree t, int flags)
*** 962,967 ****
--- 962,971 ----
  	pp_type_id (cxx_pp, t);
        break;
  
+     case UNBOUND_CLASS_TEMPLATE:
+       dump_type (t, flags);
+       break;
+ 
      default:
        pp_unsupported_tree (cxx_pp, t);
        /* Fall through to error.  */
Index: cp/cxx-pretty-print.c
===================================================================
*** cp/cxx-pretty-print.c	(revision 127334)
--- cp/cxx-pretty-print.c	(working copy)
*************** pp_cxx_unqualified_id (cxx_pretty_printe
*** 206,211 ****
--- 206,212 ----
        break;
  
      case TYPENAME_TYPE:
+     case UNBOUND_CLASS_TEMPLATE:
        pp_cxx_unqualified_id (pp, TYPE_NAME (t));
        break;
  

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [C++ Patch] PR 32112
  2007-08-11  2:14 [C++ Patch] PR 32112 Paolo Carlini
@ 2007-08-17 19:57 ` Jason Merrill
  0 siblings, 0 replies; 2+ messages in thread
From: Jason Merrill @ 2007-08-17 19:57 UTC (permalink / raw)
  To: Paolo Carlini; +Cc: gcc-patches

OK.

Jason

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-08-17 19:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-08-11  2:14 [C++ Patch] PR 32112 Paolo Carlini
2007-08-17 19:57 ` Jason Merrill

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).