]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/cp/init.cc
re PR c++/10147 (Confusing error message for invalid template function argument)
authorMark Mitchell <mark@codesourcery.com>
Tue, 7 Oct 2003 07:07:07 +0000 (07:07 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Tue, 7 Oct 2003 07:07:07 +0000 (07:07 +0000)
commitd04a575f62b621e3df75c2cd7823a6613a2f1dc8
treec12092a2354ac3c5aa978d1c9dc718ab56108813
parentbe7630230540a61c7e9db3d922acc6680e89e7d2
re PR c++/10147 (Confusing error message for invalid template function argument)

PR c++/10147
* call.c (initialize_reference): Tweak error message.

PR c++/12337
* init.c (build_new_1): Make sure that the expression returned is
not an lvalue.

PR c++/12344, c++/12236, c++/8656
* decl.c (start_function): Do not ignore attributes embedded in a
function declarator.

PR c++/12337
* g++.dg/init/new9.C: New test.

PR c++/12334, c++/12236, c++/8656
* g++.dg/ext/attrib8.C: New test.

From-SVN: r72183
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/cp/cxx-pretty-print.c
gcc/cp/cxx-pretty-print.h
gcc/cp/decl.c
gcc/cp/init.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ext/attrib8.C [new file with mode: 0644]
gcc/testsuite/g++.dg/init/new9.C [new file with mode: 0644]
gcc/testsuite/g++.dg/other/error4.C
gcc/testsuite/g++.dg/template/ptrmem4.C