diff options
author | Nathan Sidwell <nathan@codesourcery.com> | 2005-10-17 11:19:12 +0000 |
---|---|---|
committer | Nathan Sidwell <nathan@gcc.gnu.org> | 2005-10-17 11:19:12 +0000 |
commit | c3ee4651b244be21eaa251676afc4f052727a0b5 (patch) | |
tree | 7d8824489867a310bab522176b3c8b9255de8127 /gcc/fortran/resolve.c | |
parent | 5acaf46030143cbb7e08c5c1dde13adff84d8e10 (diff) | |
download | gcc-c3ee4651b244be21eaa251676afc4f052727a0b5.zip gcc-c3ee4651b244be21eaa251676afc4f052727a0b5.tar.gz gcc-c3ee4651b244be21eaa251676afc4f052727a0b5.tar.bz2 |
re PR c++/21353 (rvalues should not be allowed to be default values for non const references in class functions.)
cp:
PR c++/21353
* g++.dg/template/defarg6.C: New.
testsuite:
PR c++/21353
* decl.c (check_default_argument): Don't check
processing_template_decl or uses_template_parms here.
(grokparms): Only call check_default_argument when not processing
a template decl.
* parser.c (cp_parser_late_parsing_default_arg): Call
check_default_argument when not processing a template decl.
From-SVN: r105492
Diffstat (limited to 'gcc/fortran/resolve.c')
0 files changed, 0 insertions, 0 deletions