This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r129677 - in /trunk/gcc: cp/ChangeLog cp/cxx-pr...
- From: jakub at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Sat, 27 Oct 2007 11:58:27 -0000
- Subject: r129677 - in /trunk/gcc: cp/ChangeLog cp/cxx-pr...
Author: jakub
Date: Sat Oct 27 11:58:26 2007
New Revision: 129677
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=129677
Log:
PR c++/33842
* cxx-pretty-print.h (pp_cxx_offsetof_expression): New prototype.
* cxx-pretty-print.c (pp_cxx_primary_expression): Handle
OFFSETOF_EXPR.
(pp_cxx_offsetof_expression_1, pp_cxx_offsetof_expression): New
functions.
* error.c (dump_expr): Handle OFFSETOF_EXPR.
* g++.dg/template/error34.C: New test.
Added:
trunk/gcc/testsuite/g++.dg/template/error34.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/cxx-pretty-print.c
trunk/gcc/cp/cxx-pretty-print.h
trunk/gcc/cp/error.c
trunk/gcc/testsuite/ChangeLog