OSDN Git Service

PR c++/47208
authordodji <dodji@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 18 Feb 2011 08:47:56 +0000 (08:47 +0000)
committerdodji <dodji@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 18 Feb 2011 08:47:56 +0000 (08:47 +0000)
commit1d4070b9abc5e55c4aa87b89f3d1cd17f54db76a
treeed7a4e3154cc3931192fde65f57e04814ee2ee8b
parent55712b03e49a63d085050d30faedf88267f6bddc
PR c++/47208

gcc/cp/

PR c++/47208
* pt.c (do_auto_deduction): Do not mention error_mark_node in
diagnostics.
* semantics.c (finish_id_expression): Do not pass erroneous decl
to decl_constant_var_p.

gcc/testsuite/

PR c++/47208
* g++.dg/cpp0x/auto21.C: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@170268 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/pt.c
gcc/cp/semantics.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/auto21.C [new file with mode: 0644]