This is the mail archive of the gcc-patches@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]

Re: [C++ diagnostic] Handle OFFSETOF_EXPR in C++ dump_expr (PR c++/33842)


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


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