public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/16829] default parameter can be not one of the last in template function
[not found] <bug-16829-3386@http.gcc.gnu.org/bugzilla/>
@ 2005-12-17 19:55 ` reichelt at gcc dot gnu dot org
2006-01-19 9:52 ` reichelt at gcc dot gnu dot org
` (6 subsequent siblings)
7 siblings, 0 replies; 8+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2005-12-17 19:55 UTC (permalink / raw)
To: gcc-bugs
------- 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
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/16829] default parameter can be not one of the last in template function
[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
` (5 subsequent siblings)
7 siblings, 0 replies; 8+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-01-19 9:52 UTC (permalink / raw)
To: gcc-bugs
------- 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=gcc&view=rev&rev=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
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/16829] default parameter can be not one of the last in template function
[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
` (4 subsequent siblings)
7 siblings, 0 replies; 8+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-01-19 9:56 UTC (permalink / raw)
To: gcc-bugs
------- 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=gcc&view=rev&rev=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
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/16829] default parameter can be not one of the last in template function
[not found] <bug-16829-3386@http.gcc.gnu.org/bugzilla/>
` (2 preceding siblings ...)
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
` (3 subsequent siblings)
7 siblings, 0 replies; 8+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-01-19 10:01 UTC (permalink / raw)
To: gcc-bugs
------- 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=gcc&view=rev&rev=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
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/16829] [3.4 regression] default parameter can be not one of the last in function
[not found] <bug-16829-3386@http.gcc.gnu.org/bugzilla/>
` (3 preceding siblings ...)
2006-01-19 10:01 ` reichelt at gcc dot gnu dot org
@ 2006-01-19 10:06 ` reichelt at gcc dot gnu dot org
2006-01-24 11:38 ` reichelt at gcc dot gnu dot org
` (2 subsequent siblings)
7 siblings, 0 replies; 8+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-01-19 10:06 UTC (permalink / raw)
To: gcc-bugs
------- Comment #12 from reichelt at gcc dot gnu dot org 2006-01-19 10:06 -------
This is fixed now in gcc 4.0.3.
I'll wait a couple of days until I'll apply the patch to the 3.4 branch, too.
Btw, the following testcase is a regression from 3.3.x:
================================
struct A
{
void foo(int = 0, int);
};
================================
--
reichelt at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
GCC host triplet|i386-pc-linux-gnu/3.3.3 |
Keywords| |ice-on-invalid-code
Summary|default parameter can be not|[3.4 regression] default
|one of the last in template|parameter can be not one of
|function |the last in function
Target Milestone|--- |3.4.6
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16829
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/16829] [3.4 regression] default parameter can be not one of the last in function
[not found] <bug-16829-3386@http.gcc.gnu.org/bugzilla/>
` (4 preceding siblings ...)
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
7 siblings, 0 replies; 8+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-01-24 11:38 UTC (permalink / raw)
To: gcc-bugs
------- Comment #13 from reichelt at gcc dot gnu dot org 2006-01-24 11:38 -------
Subject: Bug 16829
Author: reichelt
Date: Tue Jan 24 11:38:06 2006
New Revision: 110167
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=110167
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-3_4-branch/gcc/testsuite/g++.dg/other/default2.C
branches/gcc-3_4-branch/gcc/testsuite/g++.dg/other/default3.C
Modified:
branches/gcc-3_4-branch/gcc/cp/ChangeLog
branches/gcc-3_4-branch/gcc/cp/decl.c
branches/gcc-3_4-branch/gcc/cp/decl2.c
branches/gcc-3_4-branch/gcc/cp/name-lookup.c
branches/gcc-3_4-branch/gcc/cp/parser.c
branches/gcc-3_4-branch/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16829
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/16829] [3.4 regression] default parameter can be not one of the last in function
[not found] <bug-16829-3386@http.gcc.gnu.org/bugzilla/>
` (5 preceding siblings ...)
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
7 siblings, 0 replies; 8+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-01-24 11:40 UTC (permalink / raw)
To: gcc-bugs
------- Comment #14 from reichelt at gcc dot gnu dot org 2006-01-24 11:40 -------
Now also fixed on the 3.4 branch.
--
reichelt at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16829
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/16829] [3.4 regression] default parameter can be not one of the last in function
[not found] <bug-16829-3386@http.gcc.gnu.org/bugzilla/>
` (6 preceding siblings ...)
2006-01-24 11:40 ` reichelt at gcc dot gnu dot org
@ 2006-02-10 2:24 ` pinskia at gcc dot gnu dot org
7 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-02-10 2:24 UTC (permalink / raw)
To: gcc-bugs
------- Comment #15 from pinskia at gcc dot gnu dot org 2006-02-10 02:24 -------
*** Bug 26206 has been marked as a duplicate of this bug. ***
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jjamison at cs dot berkeley
| |dot edu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16829
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2006-02-10 2:24 UTC | newest]
Thread overview: 8+ 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
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).