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++/37962] [4.4 regression] ICE with (auto*) casts



------- Comment #8 from jason at gcc dot gnu dot org  2008-11-18 18:12 -------
Subject: Bug 37962

Author: jason
Date: Tue Nov 18 18:11:32 2008
New Revision: 141970

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=141970
Log:
        PR c++/37962
cp/
        * parser.c (cp_parser_type_id): Complain about auto.
        * decl.c (grokdeclarator): Complain about parameters and
        conversion functions declared with auto.
        * call.c (standard_conversion): Use CLASS_TYPE_P instead of
        MAYBE_CLASS_TYPE_P.
        * cp-tree.h (TYPE_NON_AGGREGATE_CLASS): Likewise.
testsuite/
        * g++.dg/cpp0x/auto[38].C: Adjust expected errors.
        * g++.dg/cpp0x/auto9.C: New test.
        * g++.dg/cpp0x/auto10.C: New test.

Added:
    trunk/gcc/testsuite/g++.dg/cpp0x/auto10.C
    trunk/gcc/testsuite/g++.dg/cpp0x/auto9.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/call.c
    trunk/gcc/cp/cp-tree.h
    trunk/gcc/cp/decl.c
    trunk/gcc/cp/parser.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/g++.dg/cpp0x/auto3.C
    trunk/gcc/testsuite/g++.dg/cpp0x/auto8.C


-- 


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


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