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++/33463] [4.1/4.2 regression] Broken diagnostic: 'typeid_expr' not supported by dump_expr



------- Comment #3 from reichelt at gcc dot gnu dot org  2008-01-02 23:41 -------
Subject: Bug 33463

Author: reichelt
Date: Wed Jan  2 23:40:41 2008
New Revision: 131265

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=131265
Log:
        Backport:
        2007-09-18  Paolo Carlini  <pcarlini@suse.de>

        PR c++/33463
        * cxx-pretty-print.c (pp_cxx_postfix_expression): Split
        out case TYPEID_EXPR to...
        (pp_cxx_typeid_expression): ... here; use pp_cxx_left_paren
        and pp_cxx_right_paren.
        * cxx-pretty-print.h (pp_cxx_typeid_expression): Declare.
        * error.c (dump_expr): Use it.

        * g++.dg/rtti/typeid6.C: New.

Added:
    branches/gcc-4_2-branch/gcc/testsuite/g++.dg/rtti/typeid6.C
Modified:
    branches/gcc-4_2-branch/gcc/cp/ChangeLog
    branches/gcc-4_2-branch/gcc/cp/cxx-pretty-print.c
    branches/gcc-4_2-branch/gcc/cp/cxx-pretty-print.h
    branches/gcc-4_2-branch/gcc/cp/error.c
    branches/gcc-4_2-branch/gcc/testsuite/ChangeLog


-- 


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


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