PR c++/27094
* pt.c (tsubst_default_argument): Increment function_depth around call to tsubst_expr. * parser.c (cp_parser_parameter_declaration): Likewise. * decl2.c (mark_used): Tidy. PR c++/27094 * g++.dg/template/defarg8.C: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@113399 138bc75d-0d04-0410-961f-82ee72b054a4
Showing
- gcc/cp/ChangeLog 8 additions, 0 deletionsgcc/cp/ChangeLog
- gcc/cp/decl2.c 20 additions, 21 deletionsgcc/cp/decl2.c
- gcc/cp/parser.c 7 additions, 0 deletionsgcc/cp/parser.c
- gcc/cp/pt.c 7 additions, 0 deletionsgcc/cp/pt.c
- gcc/testsuite/ChangeLog 5 additions, 0 deletionsgcc/testsuite/ChangeLog
- gcc/testsuite/g++.dg/template/defarg8.C 19 additions, 0 deletionsgcc/testsuite/g++.dg/template/defarg8.C
Loading
Please register or sign in to comment