PATCH to cleanup error report stuff (1/2)

Nathan Sidwell nathan@acm.org
Wed Jan 19 09:14:00 GMT 2000


Gabriel Dos Reis wrote:
> This patch inaugures a series of patches intended to update the
> diagnostics related subroutines calls, subsequent to the automatic
> line-wrapping mode implementation in g++.  
Excellent!

But this pops out of the build
gcc -c  -DIN_GCC    -g -W -Wall -Wtraditional  -W -Wall    -I. -I.. -I. -I./.. -I./../config -I./../../include typeck.c
typeck.c: In function `build_unary_op':
typeck.c:4706: warning: unknown conversion type character `T' in format
typeck.c:4706: warning: unknown conversion type character `D' in format
typeck.c:4706: warning: too many arguments for format
typeck.c:4710: warning: too many arguments for format

And unfortunately it's breaking the testsuite and not showing line
numbers :-(

an example is g++.bugs/900121_01.C which now gives,
900121_01.C: In function `void function (s0 &, s0 &)':
900121_01.C:9: invalid use of a forward-declared, but not defined type `struct s0'

instead of the expected (and more useful)

900121_01.C: In function `void function (s0 &, s0 &)':
900121_01.C:13: invalid use of undefined type `struct s0'
900121_01.C:9: forward declaration of `struct s0'

You've been a little too eager on combining diagnostics!

nathan
-- 
Dr Nathan Sidwell :: Computer Science Department :: Bristol University
Never hand someone a gun unless you are sure where they will point it
nathan@acm.org  http://www.cs.bris.ac.uk/~nathan/  nathan@cs.bris.ac.uk


More information about the Gcc-patches mailing list