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]

C front end patch for excess errors for invalid vector conversion


The provided testcase emits two errors messages.  The second error
message complains that we have two vectors of different sizes, but we
really only have one vector.

The problem here is in convert_to_vector, which does a recursive call
after emitting the first error message.  Unfortunately, in some cases,
this results in a second error message.  The code should just return
error_mark_node after the first error message.

This patch was tested with a powerpc-darwin bootstrap and make check. 
There were no regressions.

I have checked in the patch.
-- 
Jim Wilson, GNU Tools Support, http://www.SpecifixInc.com

Attachment: patch.convert.vec
Description: Text document


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