diff options
author | Nicola Pero <nicola.pero@meta-innovation.com> | 2010-12-28 03:40:58 +0000 |
---|---|---|
committer | Nicola Pero <nicola@gcc.gnu.org> | 2010-12-28 03:40:58 +0000 |
commit | 333031f2d302d9777cab0bf8422e2c5f9d3839b1 (patch) | |
tree | 13031217e8d06ddd4720333a142445fef281ad5b /gcc/objc/objc-act.c | |
parent | 24ee85f4522f5fc1db974b77a985c2469e3a6085 (diff) | |
download | gcc-333031f2d302d9777cab0bf8422e2c5f9d3839b1.zip gcc-333031f2d302d9777cab0bf8422e2c5f9d3839b1.tar.gz gcc-333031f2d302d9777cab0bf8422e2c5f9d3839b1.tar.bz2 |
In gcc/testsuite/: 2010-12-28 Nicola Pero <nicola.pero@meta-innovation.com>
In gcc/testsuite/:
2010-12-28 Nicola Pero <nicola.pero@meta-innovation.com>
PR objc/47073
* objc.dg/incomplete-type-1.m: New test.
In gcc/objc/:
2010-12-28 Nicola Pero <nicola.pero@meta-innovation.com>
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
Diffstat (limited to 'gcc/objc/objc-act.c')
-rw-r--r-- | gcc/objc/objc-act.c | 5 |
1 files changed, 3 insertions, 2 deletions
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; |