c++/2489: wrong diagnostic

nathan@codesourcery.com nathan@codesourcery.com
Thu Apr 5 01:06:00 GMT 2001

>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
>Originator:     nathan
>Release:        CVS 20010405
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''


Content-Type: application/octet-stream; name="foo.cc"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="foo.cc"


More information about the Gcc-bugs mailing list