public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/2752
@ 2001-05-07  1:16 Peters
  0 siblings, 0 replies; 2+ messages in thread
From: Peters @ 2001-05-07  1:16 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

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

From: Peters <peters@igpm.rwth-aachen.de>
To: florin@iucha.net, gcc-gnats@gcc.gnu.org, nobody@gcc.gnu.org
Cc:  
Subject: Re: c++/2752
Date: Mon, 07 May 2001 10:18:34 +0200

 Hi,
 here is a shortened version of the code-snippet in question:
 
 template<int SIZE>
   class B
   {
     public:
       class P {};
   };
 
 template<int SIZE>
   void the_bug(B<SIZE>::P p)
 {}
 
 void test()
 {
 //    the_bug<10>(B<10>::P());  // line X, compiles
     the_bug(B<10>::P());      // line Y
 }
 
 It comes down to the question, whether the compiler should be able to
 deduce the template-argument SIZE of the_bug from a function-argument,
 in which SIZE is a template-argument of an *enclosing* class.
 (Note, that if one explicitly calls the_bug<10>, as in line X, the code
 compiles fine. )
 
 After browsing through Section 18.4.2 of the C++-Standard, I believe
 that compilers do not need to be able to perform this deduction, so the
 described problem is probably not a bug in gcc.
 
 Best regards,
 Joerg Peters
 
 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=2752&database=gcc
 
 
 


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

* Re: c++/2752
@ 2001-05-08  4:36 lerdsuwa
  0 siblings, 0 replies; 2+ messages in thread
From: lerdsuwa @ 2001-05-08  4:36 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

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

From: lerdsuwa@gcc.gnu.org
To: florin@iucha.net, gcc-gnats@gcc.gnu.org, nobody@gcc.gnu.org
Cc:  
Subject: Re: c++/2752
Date: 8 May 2001 11:30:30 -0000

 Synopsis: template function is not instantiated
 
 State-Changed-From-To: open->closed
 State-Changed-By: lerdsuwa
 State-Changed-When: Tue May  8 04:30:30 2001
 State-Changed-Why:
     Not a bug.
 
 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=2752&database=gcc


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

end of thread, other threads:[~2001-05-08  4:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-05-07  1:16 c++/2752 Peters
2001-05-08  4:36 c++/2752 lerdsuwa

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