re PR c++/51421 ([c++0x] ICE with invalid use of auto)
authorPaolo Carlini <paolo.carlini@oracle.com>
Sat, 25 Aug 2012 09:53:30 +0000 (09:53 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Sat, 25 Aug 2012 09:53:30 +0000 (09:53 +0000)
commitf27a59cf8a51f4c28cec55545673405b20a02a98
tree2800260d9c8b267b986fcfd7872938067b8bd713
parentcd057e3af0627c7528c19625bf972acde2b207fa
re PR c++/51421 ([c++0x] ICE with invalid use of auto)

/cp
2012-08-25  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/51421
* decl2.c (mark_used): Consistently return false after errors
about uses before deduction of auto.
* semantics.c (finish_id_expression): Check mark_used return
value and return error_mark_node in case of failure.

/testsuite
2012-08-25  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/51421
* g++.dg/cpp0x/auto34.C: New.

From-SVN: r190665
gcc/cp/ChangeLog
gcc/cp/decl2.c
gcc/cp/semantics.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/auto34.C [new file with mode: 0644]