re PR c++/42056 (ICE with invalid use of auto in template)
authorPaolo Carlini <paolo.carlini@oracle.com>
Fri, 27 May 2011 14:21:33 +0000 (14:21 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Fri, 27 May 2011 14:21:33 +0000 (14:21 +0000)
commitefaa76b31d79af03bcd7291053f407357b4d35bb
treeaa2a047109bbd2908546b33ba962f9572ad7bb01
parentb0bd15f7aa9e9eecc4d97f6c0165c32c3055922e
re PR c++/42056 (ICE with invalid use of auto in template)

/cp
2011-05-27  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/42056
* typeck2.c (build_functional_cast): Complain early for invalid uses
of 'auto' and set type to error_mark_node.

/testsuite
2011-05-27  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/42056
* testsuite/g++.dg/cpp0x/auto25.C: New.

From-SVN: r174337
gcc/cp/ChangeLog
gcc/cp/typeck2.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/auto25.C [new file with mode: 0644]