[Bug c++/44991] [4.4/4.5/4.6 Regression] default argument with '' cause compilation error

2010-08-30 Thread jason at gcc dot gnu dot org


--- Comment #4 from jason at gcc dot gnu dot org  2010-08-30 13:37 ---
Subject: Bug 44991

Author: jason
Date: Mon Aug 30 13:37:34 2010
New Revision: 163643

URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=163643
Log:
PR c++/44991
* parser.c (cp_parser_parameter_declaration): Pop parameter decls
after tentative parsing.

Added:
branches/gcc-4_5-branch/gcc/testsuite/g++.dg/parse/defarg15.C
Modified:
branches/gcc-4_5-branch/gcc/cp/ChangeLog
branches/gcc-4_5-branch/gcc/cp/parser.c
branches/gcc-4_5-branch/gcc/testsuite/ChangeLog


-- 


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



[Bug c++/44991] [4.4/4.5/4.6 Regression] default argument with '' cause compilation error

2010-08-30 Thread jason at gcc dot gnu dot org


--- Comment #5 from jason at gcc dot gnu dot org  2010-08-30 13:38 ---
Subject: Bug 44991

Author: jason
Date: Mon Aug 30 13:38:09 2010
New Revision: 163644

URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=163644
Log:
PR c++/44991
* parser.c (cp_parser_parameter_declaration): Pop parameter decls
after tentative parsing.

Added:
branches/gcc-4_4-branch/gcc/testsuite/g++.dg/parse/defarg15.C
Modified:
branches/gcc-4_4-branch/gcc/cp/ChangeLog
branches/gcc-4_4-branch/gcc/cp/parser.c
branches/gcc-4_4-branch/gcc/testsuite/ChangeLog


-- 


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



[Bug c++/44991] [4.4/4.5/4.6 Regression] default argument with '' cause compilation error

2010-08-30 Thread jason at gcc dot gnu dot org


--- Comment #6 from jason at gcc dot gnu dot org  2010-08-30 13:39 ---
Fixed.


-- 

jason at gcc dot gnu dot org changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution||FIXED


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



[Bug c++/44991] [4.4/4.5/4.6 Regression] default argument with '' cause compilation error

2010-08-29 Thread jason at gcc dot gnu dot org


--- Comment #3 from jason at gcc dot gnu dot org  2010-08-29 19:24 ---
Subject: Bug 44991

Author: jason
Date: Sun Aug 29 19:24:37 2010
New Revision: 163629

URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=163629
Log:
PR c++/44991
* parser.c (cp_parser_parameter_declaration): Pop parameter decls
after tentative parsing.

Added:
trunk/gcc/testsuite/g++.dg/parse/defarg15.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/parser.c
trunk/gcc/testsuite/ChangeLog


-- 


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



[Bug c++/44991] [4.4/4.5/4.6 Regression] default argument with '' cause compilation error

2010-08-26 Thread jason at gcc dot gnu dot org


-- 

jason at gcc dot gnu dot org changed:

   What|Removed |Added

 AssignedTo|unassigned at gcc dot gnu   |jason at gcc dot gnu dot org
   |dot org |
 Status|NEW |ASSIGNED
   Last reconfirmed|2010-07-19 15:38:28 |2010-08-26 06:09:53
   date||


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



[Bug c++/44991] [4.4/4.5/4.6 Regression] default argument with '' cause compilation error

2010-08-25 Thread jakub at gcc dot gnu dot org


--- Comment #2 from jakub at gcc dot gnu dot org  2010-08-25 10:00 ---
Caused by r140120 (i.e. PR37302), guess the declaration is now added during
tentative parsing which is then not committed and parsed again differently,
defining the parameter again.


-- 

jakub at gcc dot gnu dot org changed:

   What|Removed |Added

 CC||jason at gcc dot gnu dot org


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



[Bug c++/44991] [4.4/4.5/4.6 Regression] default argument with '' cause compilation error

2010-07-22 Thread rguenth at gcc dot gnu dot org


-- 

rguenth at gcc dot gnu dot org changed:

   What|Removed |Added

   Target Milestone|--- |4.4.5


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



[Bug c++/44991] [4.4/4.5/4.6 Regression] default argument with '' cause compilation error

2010-07-22 Thread rguenth at gcc dot gnu dot org


-- 

rguenth at gcc dot gnu dot org changed:

   What|Removed |Added

  Known to fail||4.4.0
  Known to work|4.1.2   |4.1.2 4.3.4
   Priority|P3  |P2


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



[Bug c++/44991] [4.4/4.5/4.6 Regression] default argument with '' cause compilation error

2010-07-19 Thread redi at gcc dot gnu dot org


--- Comment #1 from redi at gcc dot gnu dot org  2010-07-19 15:38 ---
confirmed, this worked with gcc 4.1


-- 

redi at gcc dot gnu dot org changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
 Ever Confirmed|0   |1
   Keywords||rejects-valid
  Known to work||4.1.2
   Last reconfirmed|-00-00 00:00:00 |2010-07-19 15:38:28
   date||
Summary|default argument with ''   |[4.4/4.5/4.6 Regression]
   |cause compilation error |default argument with ''
   ||cause compilation error


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