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++/51401] [c++0x] [4.7 Regression] ICE with invalid use of auto in template


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

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-12-08 00:50:29 UTC ---
Author: jakub
Date: Thu Dec  8 00:50:26 2011
New Revision: 182097

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=182097
Log:
    PR c++/51401
    * decl.c (grokdeclarator): Error for auto on non-static data members.

    * g++.dg/cpp0x/auto7.C: Adjust expected error message.
    * g++.dg/cpp0x/auto29.C: New test.

Added:
    trunk/gcc/testsuite/g++.dg/cpp0x/auto29.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/decl.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/g++.dg/cpp0x/auto7.C


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