PR c++/12226
authormmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 4 Jan 2004 22:42:22 +0000 (22:42 +0000)
committermmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 4 Jan 2004 22:42:22 +0000 (22:42 +0000)
commit41f2d08ee7c05cdbfede3251096109583a0ad355
tree2f162239ad6abe8e01544300565821a85d22ac4b
parent8cc8156d023efb8ca1eb3da77c904193eb46bd69
PR c++/12226
* call.c (CHECK_COPY_CONSTRUCTOR_P): New macro.
(reference_binding): Set it when appropriate.
(build_temp): New function, split out from ...
(convert_like_real): ... here.  Honor CHECK_COPY_CONSTRUCTOR_P.
(initialize_reference): Likewise.

PR c++/12226
* g++.dg/init/copy7.c: New test.

PR c++/12226
* testsuite/27_io/basic_filebuf/4.cc: Remove use of invalid copy
constructor.
* testsuite/27_io/basic_fstream/4.cc: Likewise.
* testsuite/27_io/basic_ifstream/4.cc: Likewise.
* testsuite/27_io/basic_ios/4.cc: Likewise.
* testsuite/27_io/basic_iostream/4.cc: Likewise.
* testsuite/27_io/basic_istream/4.cc: Likewise.
* testsuite/27_io/basic_istingstream/4.cc: Likewise.
* testsuite/27_io/basic_ofstream/4.cc: Likewise.
* testsuite/27_io/basic_ostream/4.cc: Likewise.
* testsuite/27_io/basic_ostringstream/4.cc: Likewise.
* testsuite/27_io/basic_stringbuf/5.cc: Likewise.
* testsuite/27_io/basic_stringstream/4.cc: Likewise.

PR c++/13536
* parser.c (cp_parser): Add in_type_id_in_expr_p.
(cp_parser_new): Initialize it.
(cp_parser_postfix_expression): Set it.
(cp_parser_sizeof_operand): Likewise.
(cp_parser_parameteR_declaration): Do not commit early to tenative
parsers when in_type_id_in_expr_p is set.

PR c++/13536
* g++.dg/parse/cast1.C: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@75397 138bc75d-0d04-0410-961f-82ee72b054a4
19 files changed:
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/init/copy7.C [new file with mode: 0644]
gcc/testsuite/g++.dg/parse/cast1.C [new file with mode: 0644]
libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/27_io/basic_filebuf/4.cc
libstdc++-v3/testsuite/27_io/basic_fstream/4.cc
libstdc++-v3/testsuite/27_io/basic_ifstream/4.cc
libstdc++-v3/testsuite/27_io/basic_ios/4.cc
libstdc++-v3/testsuite/27_io/basic_iostream/4.cc
libstdc++-v3/testsuite/27_io/basic_istream/4.cc
libstdc++-v3/testsuite/27_io/basic_istringstream/4.cc
libstdc++-v3/testsuite/27_io/basic_ofstream/4.cc
libstdc++-v3/testsuite/27_io/basic_ostream/4.cc
libstdc++-v3/testsuite/27_io/basic_ostringstream/4.cc
libstdc++-v3/testsuite/27_io/basic_stringbuf/5.cc
libstdc++-v3/testsuite/27_io/basic_stringstream/4.cc