[Bug c++/16829] default parameter can be not one of the last in template function

2006-01-19 Thread reichelt at gcc dot gnu dot org


--- Comment #9 from reichelt at gcc dot gnu dot org  2006-01-19 09:52 
---
Subject: Bug 16829

Author: reichelt
Date: Thu Jan 19 09:51:57 2006
New Revision: 109950

URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=109950
Log:
PR c++/16829
* decl.c (start_preparsed_function): Check default arguments
unconditionally.
* name-lookup.c (pushdecl_maybe_friend): Check default arguments
of all functions and function templates.
* parser.c (cp_parser_late_parsing_default_args): Check default
arguments.
* decl2.c (check_default_args): Set missing default arguments to
error_mark_node.

* g++.dg/other/default2.C: New test.
* g++.dg/other/default3.C: New test.

Added:
trunk/gcc/testsuite/g++.dg/other/default2.C
trunk/gcc/testsuite/g++.dg/other/default3.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/decl.c
trunk/gcc/cp/decl2.c
trunk/gcc/cp/name-lookup.c
trunk/gcc/cp/parser.c
trunk/gcc/testsuite/ChangeLog


-- 


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



[Bug c++/16829] default parameter can be not one of the last in template function

2006-01-19 Thread reichelt at gcc dot gnu dot org


--- Comment #10 from reichelt at gcc dot gnu dot org  2006-01-19 09:56 
---
Subject: Bug 16829

Author: reichelt
Date: Thu Jan 19 09:56:44 2006
New Revision: 109952

URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=109952
Log:
PR c++/16829
* decl.c (start_preparsed_function): Check default arguments
unconditionally.
* name-lookup.c (pushdecl_maybe_friend): Check default arguments
of all functions and function templates.
* parser.c (cp_parser_late_parsing_default_args): Check default
arguments.
* decl2.c (check_default_args): Set missing default arguments to
error_mark_node.

* g++.dg/other/default2.C: New test.
* g++.dg/other/default3.C: New test.

Added:
branches/gcc-4_1-branch/gcc/testsuite/g++.dg/other/default2.C
branches/gcc-4_1-branch/gcc/testsuite/g++.dg/other/default3.C
Modified:
branches/gcc-4_1-branch/gcc/cp/ChangeLog
branches/gcc-4_1-branch/gcc/cp/decl.c
branches/gcc-4_1-branch/gcc/cp/decl2.c
branches/gcc-4_1-branch/gcc/cp/name-lookup.c
branches/gcc-4_1-branch/gcc/cp/parser.c
branches/gcc-4_1-branch/gcc/testsuite/ChangeLog


-- 


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



[Bug c++/16829] default parameter can be not one of the last in template function

2006-01-19 Thread reichelt at gcc dot gnu dot org


--- Comment #11 from reichelt at gcc dot gnu dot org  2006-01-19 10:01 
---
Subject: Bug 16829

Author: reichelt
Date: Thu Jan 19 10:01:20 2006
New Revision: 109953

URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=109953
Log:
PR c++/16829
* decl.c (start_preparsed_function): Check default arguments
unconditionally.
* name-lookup.c (pushdecl_maybe_friend): Check default arguments
of all functions and function templates.
* parser.c (cp_parser_late_parsing_default_args): Check default
arguments.
* decl2.c (check_default_args): Set missing default arguments to
error_mark_node.

* g++.dg/other/default2.C: New test.
* g++.dg/other/default3.C: New test.

Added:
branches/gcc-4_0-branch/gcc/testsuite/g++.dg/other/default2.C
branches/gcc-4_0-branch/gcc/testsuite/g++.dg/other/default3.C
Modified:
branches/gcc-4_0-branch/gcc/cp/ChangeLog
branches/gcc-4_0-branch/gcc/cp/decl.c
branches/gcc-4_0-branch/gcc/cp/decl2.c
branches/gcc-4_0-branch/gcc/cp/name-lookup.c
branches/gcc-4_0-branch/gcc/cp/parser.c
branches/gcc-4_0-branch/gcc/testsuite/ChangeLog


-- 


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



[Bug c++/16829] default parameter can be not one of the last in template function

2005-12-17 Thread reichelt at gcc dot gnu dot org


--- Comment #8 from reichelt at gcc dot gnu dot org  2005-12-17 19:55 
---
Working on a patch.


-- 

reichelt at gcc dot gnu dot org changed:

   What|Removed |Added

 AssignedTo|unassigned at gcc dot gnu   |reichelt at gcc dot gnu dot
   |dot org |org
 Status|NEW |ASSIGNED


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



[Bug c++/16829] default parameter can be not one of the last in template function

2005-07-05 Thread charles at kde dot org

--- Additional Comments From charles at kde dot org  2005-07-06 01:26 
---
I should point out that fixing the actual bug in question will fix the ICE 
itself. 

-- 


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


[Bug c++/16829] default parameter can be not one of the last in template function

2005-05-09 Thread pinskia at gcc dot gnu dot org

--- Additional Comments From pinskia at gcc dot gnu dot org  2005-05-09 
14:22 ---
*** Bug 21467 has been marked as a duplicate of this bug. ***

-- 
   What|Removed |Added

 CC||sylvain dot joyeux at m4x
   ||dot org


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


[Bug c++/16829] default parameter can be not one of the last in template function

2005-01-25 Thread pinskia at gcc dot gnu dot org

--- Additional Comments From pinskia at gcc dot gnu dot org  2005-01-25 
16:31 ---
*** Bug 19625 has been marked as a duplicate of this bug. ***

-- 
   What|Removed |Added

 CC||Matthieu dot Moy at imag dot
   ||fr


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


[Bug c++/16829] default parameter can be not one of the last in template function

2005-01-25 Thread Matthieu dot Moy at imag dot fr

--- Additional Comments From Matthieu dot Moy at imag dot fr  2005-01-25 
17:05 ---
Bug 19625 contains two other similar testcases. They're worth trying once the
bug is fixed.

-- 


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