This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [C++ diagnostic] Handle OFFSETOF_EXPR in C++ dump_expr (PR c++/33842)
- From: Gabriel Dos Reis <gdr at cs dot tamu dot edu>
- To: Jakub Jelinek <jakub at redhat dot com>
- Cc: Mark Mitchell <mark at codesourcery dot com>, Jason Merrill <jason at redhat dot com>, gcc-patches at gcc dot gnu dot org
- Date: 26 Oct 2007 13:32:50 -0500
- Subject: Re: [C++ diagnostic] Handle OFFSETOF_EXPR in C++ dump_expr (PR c++/33842)
- References: <20071026151415.GO5451@devserv.devel.redhat.com>
Jakub Jelinek <jakub@redhat.com> writes:
| Hi!
|
| This patch handles printing OFFSETOF_EXPR during diagnostic.
| If the OFFSETOF_EXPR argument isn't bogus, then it will print it
| as offsetof looks like (e.g.. offsetof(type, foo.bar[12].baz) )
| but falls back to printing just the inner expression if there are errors in
| it.
|
| Ok for trunk?
OK, with Paolo's comments added.
-- gaby