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++/37967] [4.4 regression] ICE with function returning auto



------- Comment #2 from jakub at gcc dot gnu dot org  2008-10-31 21:35 -------
Subject: Bug 37967

Author: jakub
Date: Fri Oct 31 21:33:47 2008
New Revision: 141502

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=141502
Log:
        PR c++/37967
        * decl.c (grokdeclarator): Diagnose auto function decl without
        late return type and late return type function decl where type
        is not auto.

        * g++.dg/cpp0x/auto8.C: New test.

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


-- 


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


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