re PR c++/57981 (ICE in this code)
authorPaolo Carlini <paolo.carlini@oracle.com>
Thu, 25 Jul 2013 15:04:03 +0000 (15:04 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Thu, 25 Jul 2013 15:04:03 +0000 (15:04 +0000)
commit4004afb38a53d7cc555dbd7bd2c1b05c1791d531
tree22aacde1eed0277223702196c6f7d2af42ab40e9
parent105164bb90473c48540764fb9676c0e81a1adf9b
re PR c++/57981 (ICE in this code)

/cp
2013-07-25  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/57981
* decl.c (check_default_argument): Take a tsubst_flags_t parameter.
(grokparms): Adjust.
* parser.c (cp_parser_late_parse_one_default_arg): Likewise.
* pt.c (tsubst_default_argument, tsubst_default_arguments): Take
a tsubst_flags_t parameter.
(tsubst_decl): Adjust.
* call.c (convert_default_arg): Likewise.
* cp-tree.h (check_default_argument, tsubst_default_argument):
Update declarations.

/testsuite
2013-07-25  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/57981
* g++.dg/cpp0x/pr57981.C: New.

/cp
2013-07-25  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/57880
* parser.c (cp_parser_operator, case CPP_WSTRING, CPP_STRING16,
CPP_STRING32, CPP_UTF8STRING, CPP_WSTRING_USERDEF,
CPP_STRING16_USERDEF, CPP_STRING32_USERDEF, CPP_UTF8STRING_USERDEF):
Fix string_len management, tidy.

/testsuite
2013-07-25  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/57880
* g++.dg/cpp1y/udlit-empty-string-neg.C: New.

From-SVN: r201245
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/cp/cp-tree.h
gcc/cp/decl.c
gcc/cp/parser.c
gcc/cp/pt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/pr57981.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp1y/udlit-empty-string-neg.C [new file with mode: 0644]