public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/7033: [2003-01-22] Matching of template patterns
@ 2003-01-23  2:56 Wolfgang Bangerth
  0 siblings, 0 replies; only message in thread
From: Wolfgang Bangerth @ 2003-01-23  2:56 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

The following reply was made to PR c++/7033; it has been noted by GNATS.

From: Wolfgang Bangerth <bangerth@ticam.utexas.edu>
To: gcc-bugs@gcc.gnu.org, <gcc-gnats@gcc.gnu.org>
Cc: Theodore.Papadopoulo@sophia.inria.fr, <Lionel.Champalaune@sophia.inria.fr>
Subject: Re: c++/7033: [2003-01-22] Matching of template patterns
Date: Wed, 22 Jan 2003 20:55:33 -0600 (CST)

 This report can be reduced to the following snippet: 
 ------------------------------
 template <typename, typename> struct S;
 
 template <template <typename> class C,
           typename T,
           typename V>
 struct S<C<T>,typename C<T>::template it<V> > {
     typedef int it;
 };
 
 
 template <typename> struct U {
     template <typename> struct it {
         it (int);
     };
 };
 
 int main() {
   typedef U<int>   c2i;
   S<c2i,c2i::it<int> >::it it;
 };
 -------------------------------
 
 The question is: will the template list in the last line match the 
 specialization of S or not. gcc says "no" and complains about the 
 incomplete general template S when creating the variable.
 
 FWIW, icc agrees with gcc here. I have no opinion.
 
 W.
 
 -------------------------------------------------------------------------
 Wolfgang Bangerth             email:            bangerth@ticam.utexas.edu
                               www: http://www.ticam.utexas.edu/~bangerth/
 
 


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-01-23  2:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-01-23  2:56 c++/7033: [2003-01-22] Matching of template patterns Wolfgang Bangerth

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).