public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "MichaelLi8195 at hotmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/15339] [DR217] Adding default arguments to function templates in redeclartions should be forbidden
Date: Sun, 09 May 2004 14:19:00 -0000	[thread overview]
Message-ID: <20040509141757.8873.qmail@sourceware.org> (raw)
In-Reply-To: <20040507150259.15339.MichaelLi8195@hotmail.com>


------- Additional Comments From MichaelLi8195 at hotmail dot com  2004-05-09 14:17 -------
Subject: RE:  [DR217] Adding default arguments to function templates in
 redeclartions should be forbidden

I could not find "g++.dg/tc1/dr217.C" in the testsuite of the recently 
released package gcc-3.4.0.tar.bz2. Where could I get it? Thanks.


>From: "giovannibajo at libero dot it" <gcc-bugzilla@gcc.gnu.org>
>Reply-To: gcc-bugzilla@gcc.gnu.org
>To: MichaelLi8195@hotmail.com
>Subject: [Bug c++/15339] [DR217] Adding default arguments to function 
templates in redeclartions should be forbidden
>Date: 8 May 2004 16:32:58 -0000
>
>------- Additional Comments From giovannibajo at libero dot it  2004-05-08 
16:32 -------
>This should be diagnosed:
>
>------------------------------------
>template<typename> void fun(int);
>template<typename> void fun(int = 0) {}
>------------------------------------
>
>but it's not. I don't think it's a regression, but can anybody check?
>
>Also, DR217 (TC1 status) says that this is also for regular member 
function of
>class templates. In other words, the following is invalid as well:
>
>------------------------------------
>     template <class T>
>     struct S
>     {
>	void foo (int);
>     };
>
>     template <class T>
>     void S<T>::foo (int = 0) { }
>------------------------------------
>(note that this testcase is already in our testsuite: g++.dg/tc1/dr217.C)
>
>
>--
>            What    |Removed                     |Added
>----------------------------------------------------------------------------

>            Keywords|                            |accepts-invalid
>       Known to fail|                            |3.4.0 3.5.0
>             Summary|function call error         |[DR217] Adding default
>                    |                            |arguments to function
>                    |                            |templates in 
redeclartions
>                    |                            |should be forbidden
>
>
>http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15339
>
>------- You are receiving this mail because: -------
>You reported the bug, or are watching the reporter.




-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15339


  parent reply	other threads:[~2004-05-09 14:19 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-05-07 15:03 [Bug c++/15339] New: function call error MichaelLi8195 at hotmail dot com
2004-05-07 15:30 ` [Bug c++/15339] " bangerth at dealii dot org
2004-05-07 16:36   ` llewelly
2004-05-07 15:37 ` bangerth at dealii dot org
2004-05-07 16:24   ` Gabriel Dos Reis
2004-05-07 16:24 ` gdr at integrable-solutions dot net
2004-05-07 16:36 ` llewelly at xmission dot com
2004-05-07 16:54 ` bangerth at dealii dot org
2004-05-08 16:29 ` giovannibajo at libero dot it
2004-05-08 16:32 ` [Bug c++/15339] [DR217] Adding default arguments to function templates in redeclartions should be forbidden giovannibajo at libero dot it
2004-05-09 14:19 ` MichaelLi8195 at hotmail dot com [this message]
2004-05-09 15:18 ` bangerth at dealii dot org
2004-07-13 20:13 ` giovannibajo at libero dot it
2004-07-13 20:14 ` giovannibajo at libero dot it
     [not found] <bug-15339-8489@http.gcc.gnu.org/bugzilla/>
2006-06-27 14:57 ` pinskia at gcc dot gnu dot org
2010-02-12 19:57 ` jakub at gcc dot gnu dot org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20040509141757.8873.qmail@sourceware.org \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).