public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/16829] New: default parameter can be not one of the last  in template function
@ 2004-07-30  3:51 charles at kde dot org
  2004-07-30  4:04 ` [Bug c++/16829] " charles at kde dot org
                   ` (6 more replies)
  0 siblings, 7 replies; 15+ messages in thread
From: charles at kde dot org @ 2004-07-30  3:51 UTC (permalink / raw)
  To: gcc-bugs

template <class A> 
void foo(A a=0, int b) 
{ } 
 
int main() { foo(0, 0); } 
 
Behavior: 
 compiles (2 warnings on unused vars) 
Expected behavior: 
 Make an error on the a=0 (which isn't the last parameter) 
 
I also got it to ICE (SIGSEGV) on a block of code repeatedly, but try as I 
might, cannot reproduce. 
 
This has been reproduced on: 
 gcc version 3.3.3 20040412 (Gentoo Linux 3.3.3-r6, ssp-3.3.2-2, pie-8.7.6) 
 gcc version 3.3.2 (Mandrake Linux 10.0 3.3.2-6mdk) 
 gcc version 3.5.0 20040722 (experimental) 
 gcc version 3.2.2

-- 
           Summary: default parameter can be not one of the last  in
                    template function
           Product: gcc
           Version: 3.3.3
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: charles at kde dot org
                CC: gcc-bugs at gcc dot gnu dot org
  GCC host triplet: i386-pc-linux-gnu/3.3.3


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


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

end of thread, other threads:[~2006-02-10  2:24 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-16829-3386@http.gcc.gnu.org/bugzilla/>
2005-12-17 19:55 ` [Bug c++/16829] default parameter can be not one of the last in template function reichelt at gcc dot gnu dot org
2006-01-19  9:52 ` reichelt at gcc dot gnu dot org
2006-01-19  9:56 ` reichelt at gcc dot gnu dot org
2006-01-19 10:01 ` reichelt at gcc dot gnu dot org
2006-01-19 10:06 ` [Bug c++/16829] [3.4 regression] default parameter can be not one of the last in function reichelt at gcc dot gnu dot org
2006-01-24 11:38 ` reichelt at gcc dot gnu dot org
2006-01-24 11:40 ` reichelt at gcc dot gnu dot org
2006-02-10  2:24 ` pinskia at gcc dot gnu dot org
2004-07-30  3:51 [Bug c++/16829] New: default parameter can be not one of the last in template function charles at kde dot org
2004-07-30  4:04 ` [Bug c++/16829] " charles at kde dot org
2004-07-30  4:15 ` pinskia at gcc dot gnu dot org
2004-07-30 13:20 ` bangerth at dealii dot org
2005-01-25 16:32 ` pinskia at gcc dot gnu dot org
2005-01-25 17:05 ` Matthieu dot Moy at imag dot fr
2005-05-09 14:25 ` pinskia at gcc dot gnu dot org
2005-07-06  1:26 ` charles at kde 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).