This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/42056] ICE with invalid use of auto in template


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42056

--- Comment #8 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> 2011-05-27 14:21:39 UTC ---
Author: paolo
Date: Fri May 27 14:21:33 2011
New Revision: 174337

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=174337
Log:
/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.

Added:
    trunk/gcc/testsuite/g++.dg/cpp0x/auto25.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/typeck2.c
    trunk/gcc/testsuite/ChangeLog


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]