]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/cp/cxx-pretty-print.cc
re PR c++/33842 (Broken diagnostic: 'offsetof_expr' not supported by dump_expr)
authorJakub Jelinek <jakub@redhat.com>
Sat, 27 Oct 2007 11:58:26 +0000 (13:58 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Sat, 27 Oct 2007 11:58:26 +0000 (13:58 +0200)
commit094a5fe2659e4bf82420bfe1cdb57cc799a37644
tree5162a0eff158259f8a026fc2fd2b03ff65148d86
parentd449b45833001db693cf55eb5326c8eb684bc73e
re PR c++/33842 (Broken diagnostic: 'offsetof_expr' not supported by dump_expr)

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.

From-SVN: r129677
gcc/cp/ChangeLog
gcc/cp/cxx-pretty-print.c
gcc/cp/cxx-pretty-print.h
gcc/cp/error.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/template/error34.C [new file with mode: 0644]