public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/28179]  New: No diag for dflt arg on out-of-line tmpl member func def
@ 2006-06-27 14:47 cbowler at ca dot ibm dot com
  2006-06-27 14:47 ` [Bug c++/28179] " pinskia at gcc dot gnu dot org
  0 siblings, 1 reply; 2+ messages in thread
From: cbowler at ca dot ibm dot com @ 2006-06-27 14:47 UTC (permalink / raw)
  To: gcc-bugs

t.C:

template<int I>
struct S  {
  void dump(char *);
};

template<int I>
void S<I>::dump(char *m = 0) {}

void foo() { S<0> s; }
<end test>

>From the standard:

8.3.6 paragraph 6:

... "Default arguments for a member function of a class template
shall be specified on the initial declaration of the member function within the
class template."

This error is not diagnosed in any version of g++ that I've tried.  I request
that g++ implement this diagnostic to help users write standard compliant code.


-- 
           Summary: No diag for dflt arg on out-of-line tmpl member func def
           Product: gcc
           Version: 3.3.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: cbowler at ca dot ibm dot com


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


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

* [Bug c++/28179] No diag for dflt arg on out-of-line tmpl member func def
  2006-06-27 14:47 [Bug c++/28179] New: No diag for dflt arg on out-of-line tmpl member func def cbowler at ca dot ibm dot com
@ 2006-06-27 14:47 ` pinskia at gcc dot gnu dot org
  0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-06-27 14:47 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from pinskia at gcc dot gnu dot org  2006-06-27 14:47 -------


*** This bug has been marked as a duplicate of 15339 ***


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |DUPLICATE


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


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

end of thread, other threads:[~2006-06-27 14:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-06-27 14:47 [Bug c++/28179] New: No diag for dflt arg on out-of-line tmpl member func def cbowler at ca dot ibm dot com
2006-06-27 14:47 ` [Bug c++/28179] " pinskia at gcc dot gnu dot org

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