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++/29022] [4.0/4.1 regression] ICE using operator int in invalid class hierarchy



------- Comment #8 from lmillward at gcc dot gnu dot org  2006-11-29 19:02 -------
Subject: Bug 29022

Author: lmillward
Date: Wed Nov 29 19:01:50 2006
New Revision: 119332

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=119332
Log:
        PR c++/29022
        * parser.c (cp_parser_class_head): Move processing
        of any base classes to...
        (cp_parser_class_specifier) ...here. Take an extra
        tree* parameter for any base classes. Only process
        them if the opening brace was found.

        * g++.dg/inherit/virtual1.C: New test.
        * g++.dg/inherit/virtual2.C: Likewise.
        * g++.old-deja/g++.bugs/900121_05.C: Adjust error markers.
        * g++.dg/inherit/error2.C: Likewise.
        * g++.dg/template/instantiate1.C: Likewise.


Added:
    branches/gcc-4_1-branch/gcc/testsuite/g++.dg/inherit/virtual1.C
    branches/gcc-4_1-branch/gcc/testsuite/g++.dg/inherit/virtual2.C
Modified:
    branches/gcc-4_1-branch/gcc/cp/ChangeLog
    branches/gcc-4_1-branch/gcc/cp/parser.c
    branches/gcc-4_1-branch/gcc/testsuite/ChangeLog
    branches/gcc-4_1-branch/gcc/testsuite/g++.dg/inherit/error2.C
    branches/gcc-4_1-branch/gcc/testsuite/g++.dg/template/instantiate1.C
    branches/gcc-4_1-branch/gcc/testsuite/g++.old-deja/g++.bugs/900121_05.C


-- 


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


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