From 333031f2d302d9777cab0bf8422e2c5f9d3839b1 Mon Sep 17 00:00:00 2001 From: Nicola Pero Date: Tue, 28 Dec 2010 03:40:58 +0000 Subject: In gcc/testsuite/: 2010-12-28 Nicola Pero In gcc/testsuite/: 2010-12-28 Nicola Pero PR objc/47073 * objc.dg/incomplete-type-1.m: New test. In gcc/objc/: 2010-12-28 Nicola Pero PR objc/47073 * objc-act.c (encode_method_prototype): Fixed both location and format string of error "type %qT does not have a known size". From-SVN: r168285 --- gcc/objc/ChangeLog | 6 ++++++ gcc/objc/objc-act.c | 5 +++-- 2 files changed, 9 insertions(+), 2 deletions(-) (limited to 'gcc/objc') diff --git a/gcc/objc/ChangeLog b/gcc/objc/ChangeLog index cdfb588..16b774d 100644 --- a/gcc/objc/ChangeLog +++ b/gcc/objc/ChangeLog @@ -1,3 +1,9 @@ +2010-12-28 Nicola Pero + + PR objc/47073 + * objc-act.c (encode_method_prototype): Fixed both location and + format string of error "type %qT does not have a known size". + 2010-12-26 Nicola Pero * config-lang.in (gtfiles): Added c-family/c-cppbuiltin.c. diff --git a/gcc/objc/objc-act.c b/gcc/objc/objc-act.c index 2ac51bb..ba6c810 100644 --- a/gcc/objc/objc-act.c +++ b/gcc/objc/objc-act.c @@ -5965,8 +5965,9 @@ encode_method_prototype (tree method_decl) /* If a type size is not known, bail out. */ if (sz < 0) { - error ("type %q+D does not have a known size", - type); + error_at (DECL_SOURCE_LOCATION (method_decl), + "type %qT does not have a known size", + type); /* Pretend that the encoding succeeded; the compilation will fail nevertheless. */ goto finish_encoding; -- cgit v1.1