public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/9634: [3.4 regression] Problems with templates (SFINAE)
@ 2003-02-09 23:45 paolo
  0 siblings, 0 replies; 2+ messages in thread
From: paolo @ 2003-02-09 23:45 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, nobody, poschmid

Old Synopsis: Problems with templates (SFINAE)
New Synopsis: [3.4 regression] Problems with templates (SFINAE)

State-Changed-From-To: open->analyzed
State-Changed-By: paolo
State-Changed-When: Sun Feb  9 23:45:36 2003
State-Changed-Why:
    In the meanwhile I have asked Daveed Vandevoorde, who 
    replied, about the 'template' keyword:
    "I believe it has been clarified that it is not actually
    compulsory in this case because the qualifier is the
    injected class name.  However, this was the object of
    a post-1998 defect report against the standard."

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9634


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

* Re: c++/9634: [3.4 regression] Problems with templates (SFINAE)
@ 2003-05-01 14:06 Giovanni Bajo
  0 siblings, 0 replies; 2+ messages in thread
From: Giovanni Bajo @ 2003-05-01 14:06 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

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

From: "Giovanni Bajo" <giovannibajo@libero.it>
To: <gcc-gnats@gcc.gnu.org>,
	<gcc-bugs@gcc.gnu.org>,
	<nobody@gcc.gnu.org>,
	<gcc-prs@gcc.gnu.org>,
	<poschmid@lbl.gov>
Cc:  
Subject: Re: c++/9634: [3.4 regression] Problems with templates (SFINAE)
Date: Thu, 1 May 2003 15:59:01 +0200

 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9634
 
 Yes, this is DR224
 (http://anubis.dkuug.dk/jtc1/sc22/wg21/docs/cwg_defects.html#224), which is
 in WP status (so the resolution will be adopted in the next version of the
 standard). Basically, this PR can be sumed up in the following code:
 
 --------------------------------------
 template <typename T>
 struct A
 {
     typedef int Bar;
 
     template <typename>
     struct N {};
 
     typedef Bar          type1;
     typedef A::Bar       type2;
     typedef A<T>::Bar    type3;
 
     typedef N<int>       type4;
     typedef A::N<int>    type5;
     typedef A<T>::N<int> type6;
 };
 --------------------------------------
 pr9634.cpp:10: error: ISO C++ forbids declaration of `Bar' with no type
 pr9634.cpp:10: error: expected `;'
 pr9634.cpp:11: error: ISO C++ forbids declaration of `Bar' with no type
 pr9634.cpp:11: error: expected `;'
 pr9634.cpp:14: error: `N<int>' specified as declarator-id
 pr9634.cpp:14: error: expected `;'
 pr9634.cpp:15: error: `N<int>' specified as declarator-id
 pr9634.cpp:15: error: expected `;'
 
 The code is legal and should be accepted by GCC. It's rejected from 3.4
 (which first disables the implicit typename/template extensions).
 
 NOTE for the fixer: I suggest to prepare a testcase using the official
 examples present in the above link, which tests all the conditions for both
 success and failure.
 
 Giovanni Bajo
 


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

end of thread, other threads:[~2003-05-01 14:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-02-09 23:45 c++/9634: [3.4 regression] Problems with templates (SFINAE) paolo
2003-05-01 14:06 Giovanni Bajo

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