https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98892

--- Comment #3 from Jim Wilson <wilson at gcc dot gnu.org> ---
On second thought, I don't think that there is anything wrong with
dg-*-multiline-output.

The problem is simply that the diagnostic code is left shifting the error
message by m_x_offset_display, and this left shit causes the printed message to
not match the expected message.  The difference is only a few chars of white
space which makes it very hard to see the problem when inspecting the test log.
 You have to count white space characters to see the problem.  In my case,
there is one less space char in the printed message than in the expected
message.

And it looks like the solution is -fmessage-length=0 which is already added to
ALWAYS_CXXFLAGS and should maybe be added to ALWAYS_TEST_FLAGS instead.  Or
maybe just added to this one testcase for now to make it work.

Reply via email to