From mboxrd@z Thu Jan 1 00:00:00 1970 From: nathan@codesourcery.com To: gcc-gnats@gcc.gnu.org Subject: c++/2489: wrong diagnostic Date: Thu, 05 Apr 2001 01:06:00 -0000 Message-id: <20010405080242.14423.qmail@sourceware.cygnus.com> X-SW-Source: 2001-04/msg00080.html List-Id: >Number: 2489 >Category: c++ >Synopsis: wrong diagnostic >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Thu Apr 05 01:06:01 PDT 2001 >Closed-Date: >Last-Modified: >Originator: nathan >Release: CVS 20010405 >Organization: >Environment: any >Description: we issue the wrong diagnostic on the attached invalid code. nathan@manao:48>./g++ -B ./ ../../test/foo.cc -c ../../test/foo.cc: In function `void f()': ../../test/foo.cc:5: no method `C::fn' rather than 'invalid use of incomplete type `C'' >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: ----gnatsweb-attachment---- Content-Type: application/octet-stream; name="foo.cc" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="foo.cc" Y2xhc3MgQzsKCnZvaWQgZiAoKQp7CiAgQzo6Zm4gKCk7Cn0K